Skip to main content

python

RuleDescription
cxx_python_extensionA cxx_python_extension() rule is a variant of a C/C++ library which is built as a Python module.
prebuilt_python_libraryA prebuilt_python_library() rule is used to include prebuilt python packages into the output of a top-level python_binary() or python_test() rule.
python_binaryA python_binary() rule is used to build an executable Python package that includes Python sources and resources from all transitive dependencies.
python_bootstrap_binaryA python_bootstrap_binary() rule declares a Python binary intended to be used in scripts that bootstrap other aspects of the Buck2 prelude.
python_bootstrap_binary_stage0
python_bootstrap_libraryA python_bootstrap_library() rule groups together Python sources that may be consumed by python_bootstrap_binary() targets or by other python_bootstrap_library() rules.
python_libraryA python_library() rule is used to group together Python source files and resources to be passed together in as a dep of other rules.
python_needed_coverage_testA python_needed_coverage_test() rule wraps an existing python_test() target so that it runs as a coverage-collecting bundle and is checked against per-module coverage thresholds.
python_runtime_bundleA python_runtime_bundle() rule declares a bundled Python runtime — a full install of Python including the interpreter, standard library, headers, and optionally libpython.so and additional shared libraries — that can be embedded in a PAR to produce a fully hermetic distribution.
python_testA python_test() rule defines a set of .py files that contain tests to run via the Python unit testing framework.