clingo-bootstrap: use new Spack API for environment modifications (#41574)
This commit is contained in:
parent
03d7643480
commit
de2249c334
1 changed files with 3 additions and 2 deletions
|
@ -122,8 +122,9 @@ def pgo_train(self):
|
||||||
|
|
||||||
# Run spack solve --fresh hdf5 with instrumented clingo.
|
# Run spack solve --fresh hdf5 with instrumented clingo.
|
||||||
python_runtime_env = EnvironmentModifications()
|
python_runtime_env = EnvironmentModifications()
|
||||||
for s in self.spec.traverse(deptype=("run", "link"), order="post"):
|
python_runtime_env.extend(
|
||||||
python_runtime_env.extend(spack.user_environment.environment_modifications_for_spec(s))
|
spack.user_environment.environment_modifications_for_specs(self.spec)
|
||||||
|
)
|
||||||
python_runtime_env.unset("SPACK_ENV")
|
python_runtime_env.unset("SPACK_ENV")
|
||||||
python_runtime_env.unset("SPACK_PYTHON")
|
python_runtime_env.unset("SPACK_PYTHON")
|
||||||
self.spec["python"].command(
|
self.spec["python"].command(
|
||||||
|
|
Loading…
Reference in a new issue