From 96b746cfdb4151998e6dcad0149b56abd1728702 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 3 Dec 2026 12:04:36 +0100 Subject: [PATCH 1/2] Pin scikit-build below 1.0 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`, `-- `) 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/workflows/coverity.yml | 3 ++- .github/workflows/os-llvm-sycl-build.yml | 3 ++- conda-recipe/meta.yaml | 3 ++- conda-recipe/rattler_recipe.yaml | 3 ++- doc/quick_start_guide.rst | 8 ++++---- environments/build_with_oneapi.yml | 3 ++- environments/examples.yml | 3 ++- pyproject.toml | 3 ++- 8 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 75b7cd36f327..49c8d784e2f3 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -54,8 +54,9 @@ jobs: - name: Install dpnp build dependencies # Cython pinned so the generated code, and the Coverity CIDs, stay stable + # TODO: lift the scikit-build cap when the build moves to scikit-build-core; 1.0 dropped the classic backend run: | - pip install cmake "cython==3.3.0" ninja numpy scikit-build setuptools wheel \ + pip install cmake "cython==3.3.0" ninja numpy "scikit-build<1.0" setuptools wheel \ "versioneer[toml]==0.29" - name: Install dpctl diff --git a/.github/workflows/os-llvm-sycl-build.yml b/.github/workflows/os-llvm-sycl-build.yml index 68d79d5abea9..983981c5ce34 100644 --- a/.github/workflows/os-llvm-sycl-build.yml +++ b/.github/workflows/os-llvm-sycl-build.yml @@ -133,8 +133,9 @@ jobs: path: ${{ env.dpctl-repo-path }} - name: Install dpnp dependencies + # TODO: lift the scikit-build cap when the build moves to scikit-build-core; 1.0 dropped the classic backend run: | - pip install numpy cython setuptools"<80" pytest scikit-build cmake ninja versioneer[toml]==0.29 \ + pip install numpy cython setuptools"<80" pytest "scikit-build<1.0" cmake ninja versioneer[toml]==0.29 \ mkl-devel-dpcpp onedpl-devel - name: Create set_allvars.sh diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index f79fa0dedae3..ebe3ba2492fe 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -39,7 +39,8 @@ requirements: - setuptools >=79.0.1 - wheel >=0.45.1 - python-build >=1.2.2 - - scikit-build >=0.18.1 + # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + - scikit-build >=0.18.1,<1.0 - cython >=3.1.0 - numpy >=1.26.0 - versioneer ==0.29 diff --git a/conda-recipe/rattler_recipe.yaml b/conda-recipe/rattler_recipe.yaml index 02563017b45f..2a88efadd7c2 100644 --- a/conda-recipe/rattler_recipe.yaml +++ b/conda-recipe/rattler_recipe.yaml @@ -46,7 +46,8 @@ requirements: - if: not win then: ninja>=1.11.1 - numpy - - scikit-build>=0.18.1 + # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + - scikit-build>=0.18.1,<1.0 - setuptools>=79.0.1 - wheel>=0.45.1 - versioneer ==0.29 diff --git a/doc/quick_start_guide.rst b/doc/quick_start_guide.rst index e8a9e8b23509..9bfa7a63068f 100644 --- a/doc/quick_start_guide.rst +++ b/doc/quick_start_guide.rst @@ -94,8 +94,8 @@ On Linux: .. code-block:: bash - conda create -n build-env dpctl cython dpcpp_linux-64 mkl-devel-dpcpp tbb-devel \ - onedpl-devel cmake scikit-build ninja versioneer pytest ocl-icd-system \ + conda create -n build-env dpctl cython dpcpp_linux-64 mkl-devel-dpcpp tbb-devel \ + onedpl-devel cmake "scikit-build<1.0" ninja versioneer pytest ocl-icd-system \ -c dppy/label/dev -c conda-forge --override-channels conda activate build-env @@ -103,8 +103,8 @@ On Windows: .. code-block:: bash - conda create -n build-env dpctl cython dpcpp_win-64 mkl-devel-dpcpp tbb-devel \ - onedpl-devel cmake scikit-build ninja versioneer pytest khronos-opencl-icd-loader\ + conda create -n build-env dpctl cython dpcpp_win-64 mkl-devel-dpcpp tbb-devel \ + onedpl-devel cmake "scikit-build<1.0" ninja versioneer pytest khronos-opencl-icd-loader\ -c dppy/label/dev -c conda-forge --override-channels conda activate build-env diff --git a/environments/build_with_oneapi.yml b/environments/build_with_oneapi.yml index 9dafc156838a..017221d3be93 100644 --- a/environments/build_with_oneapi.yml +++ b/environments/build_with_oneapi.yml @@ -7,5 +7,6 @@ dependencies: - ninja - numpy - setuptools - - scikit-build + # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + - scikit-build<1.0 - versioneer diff --git a/environments/examples.yml b/environments/examples.yml index 37429de5ae69..c0b1b7cf4a31 100644 --- a/environments/examples.yml +++ b/environments/examples.yml @@ -7,4 +7,5 @@ dependencies: - dpcpp_linux-64>=2026.0.0 - cmake - ninja - - scikit-build + # TODO: lift the cap when the example moves to scikit-build-core; 1.0 dropped the classic backend + - scikit-build<1.0 diff --git a/pyproject.toml b/pyproject.toml index f9bee8168646..a9e0d2805d61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,8 @@ requires = [ "ninja>=1.11.1; platform_system!='Windows'", # NOTE: no DPNP restriction on NumPy version, so follow NumPy's drop schedule "numpy>=1.26.0", - "scikit-build>=0.18.1", + # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + "scikit-build>=0.18.1,<1.0", "setuptools>=79.0.1", "wheel>=0.45.1", # WARNING: check with doc how to upgrade From aefc2f19f53283ab14d05453581f39ef383d2b1b Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 3 Dec 2026 13:37:58 +0100 Subject: [PATCH 2/2] Link the scikit-build cap TODOs to #3222 The OS LLVM SYCL job also builds dpctl from source, so its TODO names dpctl's move to scikit-build-core too. --- .github/workflows/coverity.yml | 2 +- .github/workflows/os-llvm-sycl-build.yml | 2 +- conda-recipe/meta.yaml | 2 +- conda-recipe/rattler_recipe.yaml | 2 +- environments/build_with_oneapi.yml | 2 +- environments/examples.yml | 2 +- pyproject.toml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 49c8d784e2f3..21a3043f132d 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -54,7 +54,7 @@ jobs: - name: Install dpnp build dependencies # Cython pinned so the generated code, and the Coverity CIDs, stay stable - # TODO: lift the scikit-build cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the scikit-build cap when the build moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend run: | pip install cmake "cython==3.3.0" ninja numpy "scikit-build<1.0" setuptools wheel \ "versioneer[toml]==0.29" diff --git a/.github/workflows/os-llvm-sycl-build.yml b/.github/workflows/os-llvm-sycl-build.yml index 983981c5ce34..d769e2ed3219 100644 --- a/.github/workflows/os-llvm-sycl-build.yml +++ b/.github/workflows/os-llvm-sycl-build.yml @@ -133,7 +133,7 @@ jobs: path: ${{ env.dpctl-repo-path }} - name: Install dpnp dependencies - # TODO: lift the scikit-build cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the scikit-build cap when dpnp (https://github.com/IntelPython/dpnp/issues/3222) and dpctl, which this job builds from source, move to scikit-build-core; 1.0 dropped the classic backend run: | pip install numpy cython setuptools"<80" pytest "scikit-build<1.0" cmake ninja versioneer[toml]==0.29 \ mkl-devel-dpcpp onedpl-devel diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index ebe3ba2492fe..687e44f5bdc6 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -39,7 +39,7 @@ requirements: - setuptools >=79.0.1 - wheel >=0.45.1 - python-build >=1.2.2 - # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the cap when the build moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend - scikit-build >=0.18.1,<1.0 - cython >=3.1.0 - numpy >=1.26.0 diff --git a/conda-recipe/rattler_recipe.yaml b/conda-recipe/rattler_recipe.yaml index 2a88efadd7c2..1a3c5b348129 100644 --- a/conda-recipe/rattler_recipe.yaml +++ b/conda-recipe/rattler_recipe.yaml @@ -46,7 +46,7 @@ requirements: - if: not win then: ninja>=1.11.1 - numpy - # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the cap when the build moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend - scikit-build>=0.18.1,<1.0 - setuptools>=79.0.1 - wheel>=0.45.1 diff --git a/environments/build_with_oneapi.yml b/environments/build_with_oneapi.yml index 017221d3be93..26b414e42908 100644 --- a/environments/build_with_oneapi.yml +++ b/environments/build_with_oneapi.yml @@ -7,6 +7,6 @@ dependencies: - ninja - numpy - setuptools - # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the cap when the build moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend - scikit-build<1.0 - versioneer diff --git a/environments/examples.yml b/environments/examples.yml index c0b1b7cf4a31..8792ec712c09 100644 --- a/environments/examples.yml +++ b/environments/examples.yml @@ -7,5 +7,5 @@ dependencies: - dpcpp_linux-64>=2026.0.0 - cmake - ninja - # TODO: lift the cap when the example moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the cap when the example moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend - scikit-build<1.0 diff --git a/pyproject.toml b/pyproject.toml index a9e0d2805d61..2974429ccb44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ requires = [ "ninja>=1.11.1; platform_system!='Windows'", # NOTE: no DPNP restriction on NumPy version, so follow NumPy's drop schedule "numpy>=1.26.0", - # TODO: lift the cap when the build moves to scikit-build-core; 1.0 dropped the classic backend + # TODO: lift the cap when the build moves to scikit-build-core (https://github.com/IntelPython/dpnp/issues/3222); 1.0 dropped the classic backend "scikit-build>=0.18.1,<1.0", "setuptools>=79.0.1", "wheel>=0.45.1",