API Documentation¶
This project exposes 2 modules:
build
module¶
build - A simple, correct PEP 517 package builder
-
exception
build.
BuildBackendException
(exception)¶ Bases:
Exception
Exception raised when the backend fails
-
class
build.
ProjectBuilder
(srcdir, python_executable='/usr/bin/python', scripts_dir=None)¶ Bases:
object
The PEP 517 consumer API.
- Parameters
-
build
(distribution, output_directory, config_settings=None, metadata_directory=None)¶ Build a distribution.
- Parameters
distribution (
str
) – Distribution to build (sdist
orwheel
)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 previousprepare
call on the samedistribution
kind
- Return type
- Returns
The full path to the built distribution
-
property
build_dependencies
¶ The dependencies defined in the
pyproject.toml
’sbuild-system.requires
field or the default build dependencies ifpyproject.toml
is missing orbuild-system
is undefined.
-
check_dependencies
(distribution, config_settings=None)¶ Return the dependencies which are not satisfied from the combined set of
build_dependencies
andget_dependencies()
for a given distribution.
-
get_dependencies
(distribution, config_settings=None)¶ Return the dependencies defined by the backend in addition to
build_dependencies
for 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.