Skip to content

Commit

Permalink
Fix ModuleNotFoundError: No module named 'numpy' on build (#1979)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaiah Norton <[email protected]>
  • Loading branch information
kounelisagis and ihnorton authored May 23, 2024
1 parent 8355035 commit 299bbbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

## Build system changes

* Fix ModuleNotFoundError: No module named 'numpy' on build by @kounelisagis in https://github.com/TileDB-Inc/TileDB-Py/pull/1979
* Add support for numpy2 by @kounelisagis in https://github.com/TileDB-Inc/TileDB-Py/pull/1969
* Fix syntax error in nightly build workflow by @ihnorton in https://github.com/TileDB-Inc/TileDB-Py/pull/1970
* Set an upper bound for numpy to dodge 2.0 by @sgillies in https://github.com/TileDB-Inc/TileDB-Py/pull/1963
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[build-system]
requires = ["setuptools>=64", "wheel", "pybind11", "Cython"]
requires = [
"setuptools>=64",
"wheel",
"pybind11",
"Cython",
"numpy== 1.17.*,<2.0 ; python_version == '3.8' and platform_machine != 'aarch64'",
"numpy>=1.25 ; python_version >= '3.9'",
]
build-backend = "setuptools.build_meta"

[project]
Expand Down

0 comments on commit 299bbbd

Please sign in to comment.