Skip to content

Commit

Permalink
Add machine to spack software env name
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Jan 20, 2024
1 parent 2c53232 commit 41eb9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@ def build_spack_soft_env(config, update_spack, machine, env_type, # noqa: C901
if env_type == 'dev':
ver = version.parse(polaris_version)
release_version = '.'.join(str(vr) for vr in ver.release)
spack_env = f'dev_polaris_soft_{release_version}'
spack_env = f'dev_polaris_soft_{release_version}_{machine}'
elif env_type == 'test_release':
spack_env = f'test_polaris_soft_{polaris_version}'
spack_env = f'test_polaris_soft_{polaris_version}_{machine}'
else:
spack_env = f'polaris_soft_{polaris_version}'
spack_env = f'polaris_soft_{polaris_version}_{machine}'

spack_env = spack_env.replace('.', '_')

Expand Down

0 comments on commit 41eb9e6

Please sign in to comment.