Repository navigation
Pin scikit-build below 1.0 - #3221
Merged
Merged
Conversation
scikit-build 1.0 replaced its classic backend with the setuptools plugin of scikit-build-core, which no longer accepts the `setup.py build_ext` options the build scripts pass (`--generator`, `--build-type`, `-- <cmake args>`) and no longer sets up MSVC for a Ninja build on Windows. Cap it below 1.0 in the build requirements, both conda recipes, the build environments, the Coverity and open source LLVM SYCL workflows and the quick start guide, until the build moves to scikit-build-core.
antonwolfy
requested review from
ndgrigorian and
vlad-perevezentsev
as code owners
December 3, 2026 11:05
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/index.html |
vlad-perevezentsev
approved these changes
Dec 3, 2026
vlad-perevezentsev
left a comment
Contributor
There was a problem hiding this comment.
LGTM
Thank you @antonwolfy
Contributor
|
Array API standard conformance tests for dpnp=0.22.0dev3+74.gf83104ffa ran successfully. |
The OS LLVM SYCL job also builds dpctl from source, so its TODO names dpctl's move to scikit-build-core too.
Collaborator
github-actions Bot
added a commit
that referenced
this pull request
Dec 3, 2026
scikit-build 1.0.0, released on 2026-12-02, replaced its classic backend with the setuptools plugin of scikit-build-core: `skbuild.setup()` is now a thin wrapper around it. Two of dpnp's builds fail with it: - `scripts/build_locally.py` and `scripts/gen_coverage.py` call `setup.py build_ext --inplace` with `--generator`, `--build-type` and `-- <cmake args>`, which 1.0 removed. The `Build with Open Source LLVM SYCL compiler` job, which installs `scikit-build` with pip, fails at `Build dpnp`: ``` error: option --generator not recognized ``` - The Windows wheels fail at CMake's compiler check. 1.0 dropped the generator probing that set up the MSVC environment for a Ninja build, so the linker doesn't find the Windows SDK libraries: ``` LINK : fatal error LNK1104: cannot open file 'kernel32.lib' ``` The Linux wheels still build. conda-forge has scikit-build 0.19.0, so the conda builds and the jobs that build from `environments/build_with_oneapi.yml` (docs, oneMath, coverage) aren't affected yet, but they would fail the same way once conda-forge has 1.0. This PR caps `scikit-build` below 1.0 wherever it is installed: - `[build-system].requires` in `pyproject.toml`, which the wheel builds install in isolation - `conda-recipe/meta.yaml` and `conda-recipe/rattler_recipe.yaml` - `environments/build_with_oneapi.yml` and `environments/examples.yml` - the pip installs of `coverity.yml` and `os-llvm-sycl-build.yml`, which call `setup.py` through the build scripts, so the `pyproject.toml` pin doesn't reach them - the `conda create` commands of the quick start guide, whose build commands use the removed `setup.py build_ext --inplace -- -G Ninja` syntax The cap is a stopgap, and each one carries a TODO. Staying on `skbuild.setup` with 1.0 would also lose incremental builds: its backend removes the CMake build directory on every run, and `pip install -e .` builds everything a second time. A follow-up moves the build to scikit-build-core directly and lifts the caps. #3215 moves the pip installs of `coverity.yml` and `os-llvm-sycl-build.yml` into requirement files with `scikit-build==0.19.1`; whichever of the two merges second takes the other's lines there.
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.
scikit-build 1.0.0, released on 2026-12-02, replaced its classic backend with the setuptools plugin of scikit-build-core:
skbuild.setup()is now a thin wrapper around it. Two of dpnp's builds fail with it:scripts/build_locally.pyandscripts/gen_coverage.pycallsetup.py build_ext --inplacewith--generator,--build-typeand-- <cmake args>, which 1.0 removed. TheBuild with Open Source LLVM SYCL compilerjob, which installsscikit-buildwith pip, fails atBuild dpnp:The Linux wheels still build. conda-forge has scikit-build 0.19.0, so the conda builds and the jobs that build from
environments/build_with_oneapi.yml(docs, oneMath, coverage) aren't affected yet, but they would fail the same way once conda-forge has 1.0.This PR caps
scikit-buildbelow 1.0 wherever it is installed:[build-system].requiresinpyproject.toml, which the wheel builds install in isolationconda-recipe/meta.yamlandconda-recipe/rattler_recipe.yamlenvironments/build_with_oneapi.ymlandenvironments/examples.ymlcoverity.ymlandos-llvm-sycl-build.yml, which callsetup.pythrough the build scripts, so thepyproject.tomlpin doesn't reach themconda createcommands of the quick start guide, whose build commands use the removedsetup.py build_ext --inplace -- -G NinjasyntaxThe cap is a stopgap, and each one carries a TODO. Staying on
skbuild.setupwith 1.0 would also lose incremental builds: its backend removes the CMake build directory on every run, andpip install -e .builds everything a second time. A follow-up moves the build to scikit-build-core directly and lifts the caps.#3215 moves the pip installs of
coverity.ymlandos-llvm-sycl-build.ymlinto requirement files withscikit-build==0.19.1; whichever of the two merges second takes the other's lines there.