Commit fabbf26
committed
Add numpy to build requirements for PEP 517 build isolation
The C++ extension includes pybind11/numpy.h which requires numpy headers
during compilation. Previously numpy was only listed as a runtime dependency,
causing isolated builds (pip install ., cibuildwheel) to fail with:
fatal error: numpy/arrayobject.h: No such file or directory
This adds numpy>=1.16 to [build-system].requires to ensure it's available
in the build environment before compilation begins.
Fixes: Build failures in isolated environments
Required for: Proper PEP 517 compliance and cibuildwheel support1 parent 0af8870 commit fabbf26
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments