mache.spack.activation.capture_activation
- mache.spack.activation.capture_activation(*, spack_path, env_name, prologue_path, work_dir)[source]
Run
spack env activate --shfor an environment in a fresh login shell and rewrite its output relative to that shell’s environment.- Parameters:
- Returns:
modifications (list of tuple) – The rewritten modifications, see
rewrite_modifications()