8000 BUG: Fix/workaround for #6719 · gerritholl/numpy@418ef99 · GitHub
[go: up one dir, main page]

Skip to content

Commit 418ef99

Browse files
committed
BUG: Fix/workaround for numpy#6719
numpy/random/mtrand/mtrand.pyx contains a line where cython fails to compile, complaining “Pythonic division not allowed without gil”. By passing '--directive cdivision=true' to cython, it can compile again.
1 parent d94043f commit 418ef99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cythonize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def process_pyx(fromfile, tofile):
6161
except ImportError:
6262
pass
6363

64-
flags = ['--fast-fail']
64+
flags = ['--fast-fail', '--directive', 'cdivision=True']
6565
if tofile.endswith('.cxx'):
6666
flags += ['--cplus']
6767

0 commit comments

Comments
 (0)
0