Hi,
The issue is caused by improperly importing the numpy C API. If you apply
this diff, it will work:
diff --git a/_aux.c b/_aux.c
index e3f8f32..435b612 100644
--- a/_aux.c
+++ b/_aux.c
@@ -1,4 +1,6 @@
#include "Python.h"
+#define NO_IMPORT_ARRAY
+#define PY_ARRAY_UNIQUE_SYMBOL ExtModule
#inc
Hi all,
Now that the dust has settled on what we're including in the NumPy 2.0
release, it felt like a good time to update the project roadmap. After a
few discussions with other maintainers I opened
https://github.com/numpy/numpy/pull/26505. Part of it is a regular
maintenance update: remove what
I am working to transition mkl_fft and mkl_random to NumPy 2.0.
Both of these projects contain native extensions.
I have distilled unexpected behavior behind observed test failures in minimal C
extension:
https://github.com/oleksandr-pavlyk/reproducer-for-question-about-numpy2
The extension def