diff --git a/cyarray/carray.pyx b/cyarray/carray.pyx index 0c99f21..29cf108 100644 --- a/cyarray/carray.pyx +++ b/cyarray/carray.pyx @@ -33,6 +33,7 @@ from libc.stdlib cimport * from libc.stdint cimport uintptr_t cimport numpy as np +np.import_array() import numpy as np diff --git a/cyarray/carray.pyx.mako b/cyarray/carray.pyx.mako index 4185424..cf75c31 100644 --- a/cyarray/carray.pyx.mako +++ b/cyarray/carray.pyx.mako @@ -42,6 +42,7 @@ from libc.stdlib cimport * from libc.stdint cimport uintptr_t cimport numpy as np +np.import_array() import numpy as np diff --git a/pyproject.toml b/pyproject.toml index 6eb1fc9..5b68acd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ requires = [ "wheel>=0.29.0", "setuptools>=42.0.0", - "oldest-supported-numpy", + "numpy", "Cython", "mako" -] \ No newline at end of file +]