API Documentation¶
This project exposes 2 modules:
build module¶
build - A simple, correct PEP 517 package builder
-
exception
build.BuildBackendException(exception)¶ Bases:
ExceptionException raised when the backend fails
-
class
build.ProjectBuilder(srcdir, python_executable='/usr/bin/python', scripts_dir=None)¶ Bases:
objectThe PEP 517 consumer API.
- Parameters
-
build(distribution, output_directory, config_settings=None, metadata_directory=None)¶ Build a distribution.
- Parameters
distribution (
str) – Distribution to build (sdistorwheel)output_directory (
str) – Directory to put the built distribution inconfig_settings (
Optional[Mapping[str,Union[str,Sequence[str]]]]) – Config settings for the build backendmetadata_directory (
Optional[str]) – If provided, should be the return value of a previouspreparecall on the samedistributionkind
- Return type
- Returns
The full path to the built distribution
-
property
build_dependencies¶ The dependencies defined in the
pyproject.toml’sbuild-system.requiresfield or the default build dependencies ifpyproject.tomlis missing orbuild-systemis undefined.
-
check_dependencies(distribution, config_settings=None)¶ Return the dependencies which are not satisfied from the combined set of
build_dependenciesandget_dependencies()for a given distribution.
-
get_dependencies(distribution, config_settings=None)¶ Return the dependencies defined by the backend in addition to
build_dependenciesfor a given distribution.
-
prepare(distribution, output_directory, config_settings=None)¶ Prepare metadata for a distribution.
- Parameters
- Return type
- Returns
The full path to the prepared metadata directory
-
property
python_executable¶ The Python executable used to invoke the backend.
-
build.check_dependency(req_string, ancestral_req_strings=(), parent_extras=frozenset({}))¶ Verify that a dependency and all of its dependencies are met.