Skip to content
Snippets Groups Projects

Draft: Esd spack installation

Closed Adrian Ciu requested to merge esd-spack-installation into master
2 files
+ 11
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -167,6 +167,16 @@ class SpackManager(ABC):
return spack_version.stdout.strip().split()[0]
return None
@no_spack_env
def install_packages(self, jobs: int):
# spack install -v --j "$cpu_count" --fresh
run_command("bash", "-c",
f'source {self.spack_setup_script} && spack install --env {self.env.env_name} -v --j {jobs} --fresh',
capture_output=True, text=True, check=True,
logger=self.logger,
debug_msg=f"Installing spack packages for {self.env.env_name}",
exception_msg=f"Error installing spack packages for {self.env.env_name}",
exception=SpackInstallPackagesException)
def install_spack(self, spack_version="v0.21.1", spack_repo='https://github.com/spack/spack'):
try: