diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-01-15 10:22:21 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-01-15 10:22:21 +0100 |
commit | e1255fe356f1ff97533b33caa6179737a64c4898 (patch) | |
tree | 0341b022bcc390894c6d49d4ae57822e311aff3b /src | |
parent | 95c34035645e788d98a3fa6b059ad48024596906 (diff) |
Fix #96 : set language_level. It does not work when using compiler_directives of cythonize.
Diffstat (limited to 'src')
-rw-r--r-- | src/python/setup.py.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/setup.py.in b/src/python/setup.py.in index 24d05025..9c2124f4 100644 --- a/src/python/setup.py.in +++ b/src/python/setup.py.in @@ -11,6 +11,7 @@ from setuptools import setup, Extension from Cython.Build import cythonize from numpy import get_include as numpy_get_include +import sys __author__ = "Vincent Rouvreau" __copyright__ = "Copyright (C) 2016 Inria" @@ -38,7 +39,8 @@ for module in modules: libraries=libraries, library_dirs=library_dirs, include_dirs=include_dirs, - runtime_library_dirs=runtime_library_dirs,)) + runtime_library_dirs=runtime_library_dirs, + cython_directives = {'language_level': str(sys.version_info[0])},)) setup( name = 'gudhi', |