Skip to content

BUG: Fix for #6719 #6721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 25, 2015

Conversation

gerritholl
Copy link
Contributor

numpy/random/mtrand/mtrand.pyx contains a line where cython fails to
compile, complaining “Pythonic division not allowed without gil”. By
running this code segment under cdivision(True), this problem is avoided.

@@ -127,6 +127,7 @@ cdef extern from "initarray.h":
# Initialize numpy
import_array()

import cython
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does cimport cython work? That is what the cython documentation uses for examples.

@gerritholl
Copy link
Contributor Author

Should I squash the two commits into one?

@charris
Copy link
Member

charris commented Nov 25, 2015

Yes, please do.

@charris charris added this to the 1.10.2 release milestone Nov 25, 2015
numpy/random/mtrand/mtrand.pyx contains a line where cython fails to
compile, complaining “Pythonic division not allowed without gil”.  By
running this code segment under cdivision(True), this problem is avoided.
@gerritholl gerritholl force-pushed the circumvent-cython-problem-locally branch from 9694ad5 to 4e276ac Compare November 25, 2015 18:22
@gerritholl
Copy link
Contributor Author

@charris Done, I believe.

@charris
Copy link
Member

charris commented Nov 25, 2015

OK, might as well put this in as it seems otherwise harmless. You might send an inquiry to the Cython folks.

charris added a commit that referenced this pull request Nov 25, 2015
@charris charris merged commit e711c95 into numpy:master Nov 25, 2015
@charris
Copy link
Member

charris commented Nov 25, 2015

Thanks @gerritholl .

@charris charris removed this from the 1.10.2 release milestone Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants