-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: core: Do not use '#undef complex' in npy_common.h. #24343
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
Conversation
That use of #undef broke extension modules that use #include <complex.h> and also include npy_common.h.
Whoops... this will require a more extensive change to fix the issue. |
The error is here
where the source code uses the keyword complex as a variable name numpy/numpy/core/src/multiarray/buffer.c Line 1069 in 8627dc9
I think there is a also a place in f2py that does the same thing |
I fixed the uses of This shows that we can remove
on my Mac. But those files are supposed to be generated by the python script Also, if we make the change, we'll break extension modules that happen to use the name |
I think this is the correct path forward. Did we not add a release note in #24085? We should also document the fact that |
@mattip, @seberg and @rgommers agree that we need to undo the use of This pull request is just the proof of concept; the correct change for the |
That use of #undef broke extension modules that use #include <complex.h> and also include npy_common.h.