Repository navigation
Todo
Description
scikit-build 1.0.0 replaced its classic backend with the setuptools plugin of scikit-build-core, and skbuild.setup() is now a thin wrapper around it. #3221 caps scikit-build below 1.0 to keep the current build working. Moving to the 1.0 wrapper isn't worth it: it deletes the CMake build directory on every run, so every build is a full rebuild, and pip install -e . builds everything a second time.
This issue tracks building dpnp with scikit-build-core directly (build-backend = "scikit_build_core.build") and lifting the caps. It involves:
pyproject.toml: the new backend and a[tool.scikit-build]table instead ofsetup.py, withwheel.packages, awheel.excludelist that keeps the wheel content as it is today, and a persistentbuild-dirfor incremental rebuilds- the version: setuptools-scm's default scheme rejects our
X.Y.0devNtags, as it expects dev tags to end in.dev0. We can keep versioneer through a version provider in the repository, or have setuptools-scm describe only thedev0and release tags, which turns0.22.0dev3+71.g<hash>into0.22.0.dev151+g<hash> - CMake: the Cython targets on
cython-cmakeinstead of scikit-build'sUseCython, relative install destinations instead of${CMAKE_INSTALL_PREFIX}/..., andlib/cmake/dpnpunderSKBUILD_DATA_DIR - editable installs: the compiled modules then live in site-packages while the Python files stay in the source tree, and
dpnp.__path__lists both.dpnp.get_include(),python -m dpnp --tensor-include-dir, the Windows DLL directories indpnp/__init__.pyandtest_free_threading.pymust stop relying on__file__ scripts/build_locally.pyandscripts/gen_coverage.py: onepip installwith config settings instead ofsetup.py build_ext --inplacefollowed bypip install -e .- the Windows wheels: the MSVC environment for the Ninja build, which classic scikit-build set up and scikit-build-core doesn't
- the conda recipes, the build environments and workflows, the pybind11 example, the quick start guide and the
AGENTS.mdfiles
The Build with Open Source LLVM SYCL compiler job also builds dpctl from source, so it keeps scikit-build<1.0 until dpctl builds with scikit-build-core as well.
Reacted by vlad-perevezentsev
Metadata
Metadata
Assignees
Labels
No labels
Activity
Link the scikit-build cap TODOs to #3222