Cython has moved to github.
cython-devel
view Demos/Setup.py @ 912:fe3d5f426ff2
Fix optional cdef arguments for c++, possible optimization when not all args are used.
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Sun Aug 03 04:02:45 2008 -0700 (3 years ago) |
| parents | 841d52580824 |
| children |
line source
1 import glob
3 from distutils.core import setup
4 from distutils.extension import Extension
5 from Cython.Distutils import build_ext
7 ext_modules=[
8 Extension("primes", ["primes.pyx"]),
9 Extension("spam", ["spam.pyx"]),
10 ]
12 for file in glob.glob("*.pyx"):
13 if file != "numeric_demo.pyx":
14 ext_modules.append(Extension(file[:-4], [file]))
16 setup(
17 name = 'Demos',
18 cmdclass = {'build_ext': build_ext},
19 ext_modules = ext_modules,
20 )
