70.13. python3-scikit-build-core-1.0.3
The PEP 517 backend for CMake projects — pybind11, nanobind, pikepdf and CoolProp build through it
The build-state snapshot was taken from 1.0.3-1; this recipe is 1.0.3-2, so the size, time and contents below describe the earlier build.
1.0.3-2 · Apache-2.0 · 0.1 SBU · 1.8 MiB, 235 files · 40_lang, 168 of 186 · ports/core/python/python3-scikit-build-core
Homepage: https://pypi.org/project/scikit-build-core/
Why it is in KDOS. The comment above the 6 ports from python3-scikit-build-core to python3-pybind11 in script/phases/40_lang/packages.d/python.txt:
THE BUILD BACKENDS ARE PORTS, NOT VENDORED WHEELS. numpy and matplotlib build through
mesonpy, pybind11, pikepdf and coolprop throughscikit-build-core, and the rest throughhatchlingorsetuptools. Under pip's build isolation each would fetch its backend from PyPI — whose own chain ends at theninjawrapper, whose sdist COMPILES CMAKE FROM SOURCE. This tree has cmake, ninja and meson already. 30_foundation installs flit-core, hatchling, poetry-core, setuptools-scm and what they build with.
scikit-build-core is the build backend for Python packages whose compiled part is a CMake project: it runs CMake and Ninja and packs what they install into a wheel. python3-pybind11 is one of the ports built through it.
Depends on: python3, python3-pip, python3-hatchling, python3-hatch-vcs, python3-packaging, python3-pathspec, cmake, ninja.
Required by (7): coolprop, jupyterlab, python3-iminuit, python3-nanobind, python3-pikepdf, python3-pybind11, python3-pyzmq.
Sources: python3-scikit-build-core-1.0.3.tar.gz (466.3 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install python3-scikit-build-core'
build.sh:
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
Programs: scikit-build, scikit-build-core.
Directories: /usr/lib/python3.14/site-packages/scikit_build_core, /usr/lib/python3.14/site-packages/scikit_build_core-1.0.3.dist-info, /usr/share/licenses/python3-scikit-build-core.
The recipe’s runtime = python3-pathspec line exists because the backend selects the files of every build with pathspec, imported from scikit_build_core/build/_file_processor.py, a submodule the run-time needs record does not read. python3-pathspec is listed in ports/buildonly, the ports a prebuilt install does not follow a dependency into unless the package’s recorded needs name it. A source build on an installed system is handed a prebuilt scikit-build-core; without the line it would arrive without pathspec, and the build that called it would stop.