Skip to content

Commit

Permalink
add cython3 patch for numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
infmagic2047 committed Aug 21, 2023
1 parent ebe763b commit 1af038f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/pkgs/numpy/patches/cython3-legacy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/tools/cythonize.py b/tools/cythonize.py
index 002b2fa..c04422e 100755
--- a/tools/cythonize.py
+++ b/tools/cythonize.py
@@ -47,6 +47,7 @@ def process_pyx(fromfile, tofile):
flags = ['-3', '--fast-fail']
if tofile.endswith('.cxx'):
flags.append('--cplus')
+ flags += ['--directive', 'legacy_implicit_noexcept=true']

subprocess.check_call(
[sys.executable, '-m', 'cython'] + flags + ["-o", tofile, fromfile])

0 comments on commit 1af038f

Please sign in to comment.