-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
28 lines (24 loc) · 911 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
from setuptools import setup, find_packages
#from distutils.core import setup
from distutils.extension import Extension
# we'd better have Cython installed, or it's a no-go
try:
from Cython.Distutils import build_ext
except:
print "You don't seem to have Cython installed. Please get a"
print "copy from www.cython.org and install it"
sys.exit(1)
pyfuncview = Extension("pyfuncview", ["pyfuncview.pyx"], extra_compile_args = ["-O3", "-Wall"], include_dirs = ['.'])
extensions = [pyfuncview]
# finally, we can pass all this to distutils
setup(
name="pyfuncview",
ext_modules=extensions,
py_modules = ['__init__'],
cmdclass = {'build_ext': build_ext},
version='1.0',
description='Frame for mixed use of C, Cython and Python (based on ctypes)',
author='Alexander Mikhalev',
author_email='[email protected]',
url='https://github.com/Muxas/pyfuncview',
)