Repository navigation
Remove NumPy as a build dependency - #2436
Merged
Merged
Conversation
ndgrigorian
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
December 2, 2026 21:14
ndgrigorian
added a commit
that referenced
this pull request
Dec 2, 2026
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Collaborator
vlad-perevezentsev
previously approved these changes
Dec 4, 2026
vlad-perevezentsev
left a comment
Collaborator
There was a problem hiding this comment.
LGTM
Thank you @ndgrigorian
The NumPy component brought in Interpreter implicitly; without it FindPython does not detect the free-threaded ABI and fails on 3.15t.
match the numpy>=2.0.0 runtime requirement in pyproject.toml, since numpy's run_exports no longer apply
ndgrigorian
force-pushed
the
drop-numpy-as-build-dependency
branch
from
December 4, 2026 16:50
efe27ea to
bfa944a
Compare
vlad-perevezentsev
approved these changes
Dec 4, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes NumPy as a build dependency of
dpctl, as none of its extensions use the NumPy C-API. NumPy remains a run-time dependencyThe CMake build no longer asks
FindPythonfor theNumPycomponent or links the extensions toPython::NumPy, andnumpyis dropped from[build-system] requiresinpyproject.toml,requirements.txt, the conda recipe's host requirements andconda_build_config.yaml, and the Coverity workflow, which only buildsThe Cython and pybind11 examples no longer ask for the
NumPycomponent either, as they only importnumpyat run time andpybind11/numpy.hneeds no NumPy headers