LinuxCommandLibrary

pybuild

Build Python packages for Debian

TLDR

Build Python package

$ pybuild --build
copy
Install to directory
$ pybuild --install --dest-dir [dir]
copy
Clean build
$ pybuild --clean
copy
Build with specific Python
$ pybuild --interpreter python3
copy

SYNOPSIS

pybuild [options]

DESCRIPTION

pybuild is a Debian helper tool that builds and installs Python packages as part of the Debian packaging process. It wraps various Python build systems including setuptools, flit, poetry, and meson-python, providing a unified interface for the dh-python debhelper sequence.
The tool automatically detects the appropriate build system from the source package and handles building for multiple Python versions when required. It is typically invoked indirectly through debhelper rules rather than used directly, but can be called manually for debugging packaging issues.

PARAMETERS

--build

Build the package.
--install
Install the package.
--clean
Clean build files.
--dest-dir DIR
Installation directory.
--interpreter PYTHON
Python interpreter.
-s SYSTEM
Build system.

CAVEATS

Debian packaging tool. Part of dh-python.

HISTORY

pybuild is part of dh-python for Debian Python packaging.

SEE ALSO

dh(1), debhelper(7), python(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community