mache.deploy.spack.capture_spack_activations

mache.deploy.spack.capture_spack_activations(*, ctx: DeployContext, results: list[SpackDeployResult]) → None[source]

Capture the activation of each deployed library environment.

This runs after the post_spack hooks, so changes a hook makes to the environment (for example to modules:prefix_inspections) are reflected. It writes activate.sh and activate.csh into each environment directory; SpackDeployResult.load_activation already sources them. Nothing happens when spack.activation is dynamic.