venvstacks.stacks.LayerEnvBase¶
- class venvstacks.stacks.LayerEnvBase(_env_spec: ~venvstacks.stacks.LayerSpecBase, build_path: ~pathlib.Path, requirements_path: ~pathlib.Path, source_filter: ~venvstacks._source_tree.SourceTreeContentFilter, build_platform: ~venvstacks.stacks.TargetPlatforms = <factory>)¶
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([lock_time])Transitively lock the requirements for this environment.
needs_build()Returns true if the build environment needs to be created or updated.
needs_lock([lock_time])Returns true if this environment needs to be locked.
report_python_site_details()Print the results of running
python -m sitein 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
categoryenv_nameThe name of this environment in the build folder.
env_specLayer specification for this environment.
install_targetThe environment name used for this layer when deployed.
kindwant_buildwant_lockwant_publishwas_builtwas_createdbuild_pathrequirements_pathindex_configThe package index configuration used to lock and build this layer.
env_pathpylib_pathdynlib_pathexecutables_pathpython_pathenv_lockbase_python_pathtools_python_pathpy_version