Skip to content

Commit c7c2068

Browse files
committed
fix: numpy version inconsistency
pyproject.toml specified oldest supported numpy. This is changed. The .pyx file is also updated to avoid avoid errors.
1 parent 58dd4ad commit c7c2068

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

cyarray/carray.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ from libc.stdlib cimport *
3333
from libc.stdint cimport uintptr_t
3434

3535
cimport numpy as np
36+
np.import_array()
3637

3738
import numpy as np
3839

cyarray/carray.pyx.mako

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ from libc.stdlib cimport *
4242
from libc.stdint cimport uintptr_t
4343

4444
cimport numpy as np
45+
np.import_array()
4546

4647
import numpy as np
4748

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"wheel>=0.29.0",
44
"setuptools>=42.0.0",
5-
"oldest-supported-numpy",
5+
"numpy",
66
"Cython",
77
"mako"
8-
]
8+
]

0 commit comments

Comments
 (0)