← 返回命令列表

Linux command

pybuild 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Build Python package

pybuild --build

Install to directory

pybuild --install --dest-dir [dir]

Clean build

pybuild --clean

Build with specific Python

pybuild --interpreter python3

说明

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.

参数

--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.

FAQ

What is the pybuild command used for?

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.

How do I run a basic pybuild example?

Run `pybuild --build` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --build do in pybuild?

Build the package.