BUG: core: Do not use '#undef complex' in npy_common.h.#24343
BUG: core: Do not use '#undef complex' in npy_common.h.#24343WarrenWeckesser wants to merge 2 commits intonumpy:mainfrom
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.