update setup.py
This commit is contained in:
parent
5df7c4d159
commit
53d782bd39
1 changed files with 16 additions and 4 deletions
20
setup.py
20
setup.py
|
|
@ -19,9 +19,8 @@ def run_llvm_config(args):
|
||||||
return os.popen(cmd).read().rstrip()
|
return os.popen(cmd).read().rstrip()
|
||||||
|
|
||||||
if run_llvm_config(['--version']) == '':
|
if run_llvm_config(['--version']) == '':
|
||||||
print("Cannot invoke llvm-config.")
|
sys.exit("Cannot invoke llvm-config.\n"
|
||||||
print("Try setting LLVM_CONFIG_PATH=/path/to/llvm-config")
|
"Try setting LLVM_CONFIG_PATH=/path/to/llvm-config")
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
def get_libs_and_objs(components):
|
def get_libs_and_objs(components):
|
||||||
|
|
@ -118,14 +117,27 @@ kwds = dict(ext_modules = [Extension(
|
||||||
pat = re.compile(r'__version__\s*=\s*(\S+)', re.M)
|
pat = re.compile(r'__version__\s*=\s*(\S+)', re.M)
|
||||||
data = open('llvm/__init__.py').read()
|
data = open('llvm/__init__.py').read()
|
||||||
kwds['version'] = eval(pat.search(data).group(1))
|
kwds['version'] = eval(pat.search(data).group(1))
|
||||||
|
kwds['long_description'] = open('README.rst').read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'llvm-py',
|
name = 'llvmpy',
|
||||||
description = 'Python bindings for LLVM',
|
description = 'Python bindings for LLVM',
|
||||||
author = 'Mahadevan R',
|
author = 'Mahadevan R',
|
||||||
author_email = 'mdevan@mdevan.org',
|
author_email = 'mdevan@mdevan.org',
|
||||||
url = 'http://www.llvmpy.org/',
|
url = 'http://www.llvmpy.org/',
|
||||||
packages = ['llvm'],
|
packages = ['llvm'],
|
||||||
py_modules = ['llvm.core'],
|
py_modules = ['llvm.core'],
|
||||||
|
license = "BSD",
|
||||||
|
classifiers = [
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: C++",
|
||||||
|
"Programming Language :: Python :: 2",
|
||||||
|
"Programming Language :: Python :: 2.6",
|
||||||
|
"Programming Language :: Python :: 2.7",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.2",
|
||||||
|
"Programming Language :: Python :: 3.3",
|
||||||
|
],
|
||||||
**kwds
|
**kwds
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue