[cfe-commits] [PATCH][clang.py] Add setup.py
Gregory Szorc
gregory.szorc at gmail.com
Sun Aug 26 11:04:39 PDT 2012
The attached patch adds a setup.py file for the Python bindings. This
should facilitate easier installation of the Python bindings (people can
just run |python setup.py install|). This might also make it easier on
package maintainers (most package managers have a special mechanism to
deal with setup.py files).
The file is pretty boilerplate. One open question I have is for the
version. Is there a file elsewhere in the tree where I can read the
version number from? I don't really like hard-coding the version in
setup.py...
Gregory
-------------- next part --------------
>From 7b027b4e2f1b07db4ec29b21ed274b9b82ba4687 Mon Sep 17 00:00:00 2001
From: Gregory Szorc <gregory.szorc at gmail.com>
Date: Sun, 26 Aug 2012 10:33:00 -0700
Subject: [PATCH] Add setup.py file
---
bindings/python/setup.py | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 bindings/python/setup.py
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
new file mode 100644
index 0000000..d2bc501
--- /dev/null
+++ b/bindings/python/setup.py
@@ -0,0 +1,29 @@
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
+README = open('README.txt').read()
+
+setup(
+ name='clang',
+ version='3.2dev',
+ license='University of Illinois/NCSA',
+ description='Interface to the Clang compiler C API',
+ author='LLVM Team',
+ author_email='cfe-dev at cs.uiuc.edu',
+ url='http://clang.llvm.org/',
+ packages=['clang'],
+ long_description=README,
+ classifiers=[
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: University of Illinois/NCSA Open Source License',
+ 'Programming Language :: C',
+ 'Programming Language :: C++',
+ 'Programming Language :: Objective C',
+ 'Programming Language :: Python',
+ 'Topic :: Software Development :: Compilers',
+ 'Topic :: Software Development :: Pre-processors',
+
+ ]
+)
--
1.7.11.3
More information about the cfe-commits
mailing list