mache.spack.install.write_prologue

mache.spack.install.write_prologue(work_dir, env_name, prologue)[source]

Write the build prologue to <env_name>.prologue.sh in the work directory, for the activation capture step to source.

Parameters:
  • work_dir (str) – The work directory

  • env_name (str) – The environment the prologue belongs to

  • prologue (str) – Shell commands that load modules and set variables before Spack runs

Returns:

path (str) – The path to the prologue