Skip to content

Commit 1af038f

Browse files
committed
add cython3 patch for numpy
1 parent ebe763b commit 1af038f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/tools/cythonize.py b/tools/cythonize.py
2+
index 002b2fa..c04422e 100755
3+
--- a/tools/cythonize.py
4+
+++ b/tools/cythonize.py
5+
@@ -47,6 +47,7 @@ def process_pyx(fromfile, tofile):
6+
flags = ['-3', '--fast-fail']
7+
if tofile.endswith('.cxx'):
8+
flags.append('--cplus')
9+
+ flags += ['--directive', 'legacy_implicit_noexcept=true']
10+
11+
subprocess.check_call(
12+
[sys.executable, '-m', 'cython'] + flags + ["-o", tofile, fromfile])

0 commit comments

Comments
 (0)