| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
|
| 4 |
if __name__ == "__main__": |
| 5 |
import sys |
| 6 |
|
| 7 |
from Cython.Build import cythonize |
| 8 |
from setuptools import Extension, setup |
| 9 |
|
| 10 |
directives = { |
| 11 |
"autotestdict": True, |
| 12 |
"embedsignature": False, |
| 13 |
"language_level": sys.version_info[0], |
| 14 |
"linetrace": False, |
| 15 |
"profile": False, |
| 16 |
} |
| 17 |
|
| 18 |
extensions = [Extension("*", ["src/pypackage/*.pyx"])] |
| 19 |
|
| 20 |
setup( |
| 21 |
name="pytest-cython-example", |
| 22 |
version="0.0.1", |
| 23 |
description="Example Cython project for pytest-cython tests", |
| 24 |
package_dir={"": "src"}, |
| 25 |
packages=["pypackage"], |
| 26 |
zip_safe=False, |
| 27 |
ext_modules=cythonize(extensions, compiler_directives=directives), |
| 28 |
) |