forked from google/tensorstore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use numpy headers rather than pybind11's alternative numpy interface
pybind11 effectively includes its own version of the numpy headers, with its own implementation for accessing NumPy APIs through NumPy's custom dynamic linking mechanism. It expects the NumPy version to be >= 1.7. That avoids the need to have the numpy headers available at build time. However, pybind11 only provides access to a small subset of numpy APIs that it actually uses itself, and only as an implementation detail. This commit changes tensorstore to use the normal numpy headers, based on the approach used by Tensorflow. When using the NumPy headers, the NumPy version at run time must be >= the version used at build time. Consequently, when building the binary packages, we arrange to build against the oldest NumPy version available for a given Python version, by using the `oldest-supported-numpy` package. PiperOrigin-RevId: 364097273 Change-Id: I24cce9d39b56dbbfc1e7823c3013b984a603c7be
- Loading branch information
1 parent
440f746
commit 83b3107
Showing
15 changed files
with
358 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ requires = [ | |
"setuptools>=30.3.0", | ||
"wheel", | ||
"setuptools_scm", | ||
"oldest-supported-numpy", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.