We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddb3818 commit 3bb0d0dCopy full SHA for 3bb0d0d
setup.py
@@ -28,15 +28,22 @@
28
try:
29
sys.argv.remove("--with-cython")
30
except ValueError:
31
- cythonize = None
32
-else:
+ pass # legacy option
+
33
+cythonize = None
34
+try:
35
+ sys.argv.remove("--no-cython")
36
+except ValueError:
37
38
from Cython.Build import cythonize
39
+ from Cython import __version__ as cython_version
40
import Cython.Compiler.Options as cython_options
41
cython_options.annotate = True
42
except ImportError:
43
+ print("Cython not found, building without Cython")
44
cythonize = None
45
else:
46
+ print("Building with Cython %s" % cython_version)
47
compiler_directives = {}
48
if enable_profiling:
49
compiler_directives['profile'] = True
0 commit comments