Skip to content

Commit 2a0f0be

Browse files
committed
Add macro to numpy header to preserve behaviour from numpy<2.1
1 parent b760dd1 commit 2a0f0be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/so3g_numpy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// source files (main.cxx), and define NO_IMPORT_ARRAY in the others.
1818
// Then, from this header file, it is safe to include arrayobject.h.
1919

20+
#define NPY_API_SYMBOL_ATTRIBUTE
2021
#define PY_ARRAY_UNIQUE_SYMBOL Py_Array_API_SO3G
2122
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
2223
#include <numpy/arrayobject.h>

0 commit comments

Comments
 (0)