Skip to content

Commit

Permalink
Fix syntax warning in setup_spack_environment (#343)
Browse files Browse the repository at this point in the history
Add double escape to silence warnings in python 3.12
  • Loading branch information
tkoskela authored Sep 19, 2024
1 parent 4153164 commit e290808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def setup_spack_environment(self):
# Copy Spack environment (only specific YAML files) to the stage
# directory.
f'mkdir -p {dest}',
f'(cd {cp_dir}; find . \( -name "spack.yaml" -o -name "compilers.yaml" -o -name "packages.yaml" \) -print0 | xargs -0 tar cf - | tar -C {dest} -xvf -)',
f'(cd {cp_dir}; find . \\( -name "spack.yaml" -o -name "compilers.yaml" -o -name "packages.yaml" \\) -print0 | xargs -0 tar cf - | tar -C {dest} -xvf -)',
f'spack -e {self.build_system.environment} config add "config:install_tree:root:{env_dir}/opt"',
]
cmd_spack_spec_dict = 'from spack import environment;\
Expand Down

0 comments on commit e290808

Please sign in to comment.