talira

Simple, correct build frontend for Python packages

open sourceMITfree

build is the Python Packaging Authority's standalone build frontend: it reads a project's pyproject.toml, calls its build backend (setuptools, Hatch, Flit or any other) in an isolated environment and produces the source distribution and wheel you upload to PyPI or install with pip. It only builds packages, without managing dependencies or virtual environments, and keeps its own dependencies minimal so it works in restricted environments. It's the modern replacement for setup.py sdist bdist_wheel, can use uv as its installer, passes nested settings to backends with --config-json, and has a Python API as well as its command line.

Ways to install

Package managers

Problems it solves

  • build a wheel and sdist for my Python package before uploading to PyPI
  • replace setup.py sdist bdist_wheel with a standards-based build
  • build Python packages in CI without installing a project manager

Features

  • Builds sdists and wheels from pyproject.toml with any backend
  • Builds in an isolated environment
  • Optional uv installer (--installer=uv)
  • --config-json passes nested settings to the backend
  • Command line and Python API
  • Minimal dependencies for restricted environments

Alternatives

The same job

These do what build does.

  1. check-manifest Check a Python package's MANIFEST.in for missing files
  2. wheel Command line tool for manipulating Python wheel files

Compare build with the top 3