venvstacks.stacks.LayerEnvBase

class venvstacks.stacks.LayerEnvBase(_env_spec: LayerSpecBase, build_path: Path, requirements_path: Path, index_config: PackageIndexConfig)

Common base class for layer build environment implementations.

Methods

create_environment([clean])

Create or update specified environment.

define_archive_build(output_path, ...[, ...])

Define an archive build request for this environment.

get_constraint_paths()

Get the lower level layer constraints imposed on this environment.

install_requirements()

Install the locked layer requirements into this environment.

lock_requirements()

Transitively lock the requirements for this environment.

report_python_site_details()

Print the results of running python -m site in this environment.

request_export(output_path[, ...])

Define a local export request for this environment.

select_operations([lock, build, publish])

Enable the selected operations for this environment.

Attributes

category

env_name

The name of this environment in the build folder.

env_spec

Layer specification for this environment.

install_target

The environment name used for this layer when deployed.

kind

want_build

want_lock

want_publish

was_built

was_created

build_path

requirements_path

index_config

env_path

pylib_path

dynlib_path

executables_path

python_path

env_lock

base_python_path

tools_python_path

py_version