Skip to content

Pin scikit-build below 1.0 - #3221

Merged
antonwolfy merged 2 commits into
masterfrom
pin-scikit-build-below-1.0
Dec 3, 2026
Merged

antonwolfy merged 2 commits into
masterfrom
pin-scikit-build-below-1.0

Conversation

@antonwolfy

Copy link
Copy Markdown
Contributor

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.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

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.
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thank you @antonwolfy

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.22.0dev3+74.gf83104ffa ran successfully.
Passed: 1491
Failed: 0
Skipped: 6

The OS LLVM SYCL job also builds dpctl from source, so its TODO names dpctl's move to scikit-build-core too.
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 84.578%. remained the same — pin-scikit-build-below-1.0 into master

@antonwolfy
antonwolfy merged commit 26ccc80 into master Dec 3, 2026
42 checks passed
@antonwolfy
antonwolfy deleted the pin-scikit-build-below-1.0 branch December 3, 2026 14:20
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants