choose-python-build-backend
Recommend the right PEP 517 build backend for a new or existing Python package, and give enough context to migrate. Chooses by three axes: purelib (pure Python) vs platlib (compiled C/C++/Rust/Torch), static vs dynamic/VCS metadata, and native language/build system. Covers uv-build, flit-core, hatchling (incl. compiled via scikit-build-core[hatchling] / a custom build hook), meson-python, scikit-build-core, maturin, and setuptools (legacy). Weighs compiled-project concerns: Cython, PyTorch extensions, pybind11/nanobind bindings, the stable Python ABI (abi3 / limited API), and fast parallel builds (CMake+Ninja, Meson). Use when asked "which build backend should I use", to pick a backend for a new project, or to decide whether to move an existing project off setuptools.
Pinned to revision 0c51c24122b3, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/choose-python-build-backend/SKILL.md
- skills/choose-python-build-backend/AGENTS.md
- skills/choose-python-build-backend/README.md
- skills/choose-python-build-backend/reference/backends.md
- skills/choose-python-build-backend/reference/why-not-poetry.md
- skills/choose-python-build-backend/reference/why-not-setuptools.md
Every link opens the file at its source, pinned to the revision this page describes.