environment
#
EXPERIMENTAL Conda environment data model
Classes#
Experimental While experimental, expect both major and minor changes across minor releases. |
|
Experimental While experimental, expect both major and minor changes across minor releases. |
- class EnvironmentConfig#
Experimental While experimental, expect both major and minor changes across minor releases.
Data model for a conda environment config.
- channel_priority: conda.base.constants.ChannelPriority | None#
- deps_modifier: conda.base.constants.DepsModifier | None#
- sat_solver: conda.base.constants.SatSolverChoice | None#
- update_modifier: conda.base.constants.UpdateModifier | None#
- _merge(other: EnvironmentConfig) EnvironmentConfig #
Experimental While experimental, expect both major and minor changes across minor releases.
Merges an EnvironmentConfig into this one. Merging rules are: * Primitive types get clobbered if subsequent configs have a value, otherwise keep the last set value * Lists get appended to and deduplicated * Dicts get updated
- classmethod merge(*configs: EnvironmentConfig) EnvironmentConfig #
Experimental While experimental, expect both major and minor changes across minor releases.
Merges a list of EnvironmentConfigs into a single one. Merging rules are: * Primitive types get clobbered if subsequent configs have a value, otherwise keep the last set value * Lists get appended to and deduplicated * Dicts get updated
- class Environment#
Experimental While experimental, expect both major and minor changes across minor releases.
Data model for a conda environment.
- config: EnvironmentConfig | None#
- explicit_packages: list[conda.models.records.PackageRecord]#
- requested_packages: list[conda.models.match_spec.MatchSpec]#
- __post_init__()#
- classmethod merge(*environments)#
Experimental While experimental, expect both major and minor changes across minor releases.
Merges multiple environments into a single environment following the rules: * Keeps first name and/or prefix. * Concatenates and deduplicates requirements. * Reduces configuration and variables (last key wins).