-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·36 lines (28 loc) · 888 Bytes
/
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
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
VERSION = "1.32"
ext_modules = [
Extension("bitfield",
["cimpl/field.pyx"],
extra_compile_args=["-g"],
extra_link_args=["-g"],
depends=["cimpl/field.h", "cimpl/field.c"]
)
]
if __name__ == "__main__":
setup(
name="bitfield",
version=VERSION,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
package_data={"Cython": ["cimpl/*.pyx"]},
cmdclass={"build_ext": build_ext},
ext_modules=ext_modules,
)