micone.setup package
Submodules
micone.setup.environments module
Module that defines the environment setup for processes
- class micone.setup.environments.Environments[source]
Bases:
object
A class that creates, lists and loads conda environments
- configs
The list of locations of the environment config files
- Type:
List[pathlib.Path]
- env_names
The list of names of environments
- Type:
List[str]
- init(env: Optional[str] = None) Iterable[Command] [source]
Initialize the requested conda environment
- Parameters:
env (Optional[str]) – The name of the conda environment to initialize If None then all the listed conda environments will be initialized Default value is None
- Yields:
Command – The currently running initialization command
- load(env: str) None [source]
Load the requested conda environment
- Parameters:
env (str) – The name of the conda environment to load
- post_install(env: Optional[str] = None) Iterable[Command] [source]
Run any post installation scripts for environment setup
- Parameters:
env (Optional[str]) – The name of the conda environment to setup If None then all the listed conda environments will be initialized Default value is None
- Yields:
Command – The currently running post_install command