Skip to content

Commit

Permalink
fix: numpy version inconsistency
Browse files Browse the repository at this point in the history
pyproject.toml specified oldest supported numpy. This is changed.
The .pyx file is also updated to avoid avoid errors.
  • Loading branch information
nauaneed committed Aug 18, 2024
1 parent 58dd4ad commit c7c2068
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions cyarray/carray.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions cyarray/carray.pyx.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires = [
"wheel>=0.29.0",
"setuptools>=42.0.0",
"oldest-supported-numpy",
"numpy",
"Cython",
"mako"
]
]

0 comments on commit c7c2068

Please sign in to comment.