-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
58 lines (51 loc) · 1.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"""
Setup configuration for installation via pip, easy_install, etc.
"""
import sys
from setuptools import setup, find_packages
# Python 3.4+ comes with enum.Enum. For prior Pythons, we can install the enum34
# package from PyPI.
if sys.hexversion < 0x030400F0:
enum_requires = ['enum34']
else:
enum_requires = []
# The find_packages function does a lot of the heavy lifting for us w.r.t.
# discovering any Python packages we ship.
setup(
name='rbc',
version='0.1.0a',
description='Example B compiler written with LLVM',
url='https://github.com/rjw57/rbc',
author='Rich Wareham',
author_email='rich.rbc@richwareham.com',
license='MIT',
packages=find_packages(),
# PyPI packages required for the *installation* and usual running of the
# tools.
install_requires=[
'docopt',
'future',
'grako',
'llvmlite<0.9.0',
'whichcraft',
] + enum_requires,
entry_points={
'console_scripts': [
'rbc=rbc:main',
],
},
package_data={
'rbc': ['*.c', '*.b'],
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
keywords='compiler B llvm example',
)