diff options
author | Stephen Sachs <stesachs@amazon.com> | 2023-12-12 17:28:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 17:28:15 +0100 |
commit | 7ed968d42c64e8e4fdd41dec947d7004baeb5704 (patch) | |
tree | d9fe8fe0f180abb804fcf098f9075776b2f379ed | |
parent | c673b9245c0dc1bab450dbdc56a55c7d74435af1 (diff) | |
download | spack-7ed968d42c64e8e4fdd41dec947d7004baeb5704.tar.gz spack-7ed968d42c64e8e4fdd41dec947d7004baeb5704.tar.bz2 spack-7ed968d42c64e8e4fdd41dec947d7004baeb5704.tar.xz spack-7ed968d42c64e8e4fdd41dec947d7004baeb5704.zip |
clingo-bootstrap: use new Spack API for environment modifications (#41574)
-rw-r--r-- | var/spack/repos/builtin/packages/clingo-bootstrap/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py index 65535f330a..77027c4ba5 100644 --- a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py +++ b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py @@ -122,8 +122,9 @@ class ClingoBootstrap(Clingo): # Run spack solve --fresh hdf5 with instrumented clingo. python_runtime_env = EnvironmentModifications() - for s in self.spec.traverse(deptype=("run", "link"), order="post"): - python_runtime_env.extend(spack.user_environment.environment_modifications_for_spec(s)) + python_runtime_env.extend( + spack.user_environment.environment_modifications_for_specs(self.spec) + ) python_runtime_env.unset("SPACK_ENV") python_runtime_env.unset("SPACK_PYTHON") self.spec["python"].command( |