tests/build/setuptools_reimport.srctree
raw| 1 | # mode: run |
| 2 | # tag: setuptools |
| 3 | |
| 4 | PYTHON setup.py |
| 5 | |
| 6 | |
| 7 | ######## module.pyx ######## |
| 8 | |
| 9 | cimport cython |
| 10 | |
| 11 | |
| 12 | ######## import_cython.py ######## |
| 13 | |
| 14 | import Cython.Compiler.Main |
| 15 | |
| 16 | |
| 17 | ######## setup.py ######## |
| 18 | |
| 19 | from setuptools.sandbox import run_setup |
| 20 | run_setup('import_cython.py', ['egg_info']) |
| 21 | |
| 22 | from Cython.Build import cythonize |
| 23 | cythonize('module.pyx') |