Repository navigation
Remove NumPy as a build dependency - #2436
Open
ndgrigorian wants to merge 3 commits into
Open
ndgrigorian wants to merge 3 commits into
ndgrigorian wants to merge 3 commits into
Conversation
ndgrigorian
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
December 2, 2026 21:14
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/2436/index.html |
Collaborator
The NumPy component brought in Interpreter implicitly; without it FindPython does not detect the free-threaded ABI and fails on 3.15t.
Comment on lines
39
to
42
| - scikit-build >=0.17.0,<1.0 | ||
| - cython >=3.1.0 # [py>=313] | ||
| - cython >=3.0.10 # [py<313] | ||
| - numpy | ||
| # WARNING: check with doc how to upgrade |
Collaborator
There was a problem hiding this comment.
With numpy gone from host, the package no longer gets numpy's run_exports, so the run entry numpy has no bounds at all. Before, conda-forge's numpy 2 added >=1.x,<3 to it. Now a future numpy 3 satisfies it, and conda disagrees with numpy>=2.0.0 in pyproject.toml. Could run say numpy >=2.0.0 (and maybe <3)?
This branch has not been deployed
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