mache.spack.install.render_install_script
- mache.spack.install.render_install_script(*, spack_path, env_name, yaml_path, prologue, pins, work_dir, mirror=None, custom_spack='', build_jobs=None, environ=None)[source]
Render the bash script that checks out Spack and builds an environment.
- Parameters:
spack_path (str) – The Spack checkout (
$SPACK_ROOT), created if absentenv_name (str) – The managed environment to (re)create
yaml_path (str) – The rendered
spack.yamlfor the environmentprologue (str) – Shell commands that load modules and set variables before Spack runs
pins (dict) – Validated pins from
mache.spack.pins.load_pins()work_dir (str) – Where
spack.lockandprovenance.yamlare copied after the buildmirror (str, optional) – A local Spack source mirror
custom_spack (str, optional) – Spack commands to run after the environment is installed
build_jobs (int, optional) – Passed to
spack install -jenviron (dict, optional) – The calling environment (
os.environby default); its proxy variables are exported in the script, seeproxy_exports()
- Returns:
script (str) – The rendered bash script