rezplugins.build_process.local
Builds packages on local host
- class rezplugins.build_process.local.LocalBuildProcess(*nargs, **kwargs)[source]
Bases:
rez.build_process.BuildProcessHelperThe default build process.
This process builds a package’s variants sequentially and on localhost.
- build(install_path=None, clean=False, install=False, variants=None)[source]
Perform the build process.
Iterates over the package’s variants, resolves the environment for each, and runs the build system within each resolved environment.
- Parameters
install_path (str) – The package repository path to install the package to, if installing. If None, defaults to config.local_packages_path.
clean (bool) – If True, clear any previous build first. Otherwise, rebuild over the top of a previous build.
install (bool) – If True, install the build.
variants (list of int) – Indexes of variants to build, all if None.
- Raises
BuildError – If the build failed.
- Returns
Number of variants successfully built.
- Return type
- release(release_message=None, variants=None)[source]
Perform the release process.
Iterates over the package’s variants, building and installing each into the release path determined by config.release_packages_path.
- Parameters
release_message (str) – Message to associate with the release.
variants (list of int) – Indexes of variants to release, all if None.
- Raises
ReleaseError – If the release failed.
- Returns
Number of variants successfully released.
- Return type
- tmpdir_manager = <rez.utils.filesystem.TempDirs object>