PythonPackage: call python and pass env mods
This commit is contained in:
parent
cda1a2fd91
commit
b328b5d169
@ -243,8 +243,7 @@ def test_imports(self) -> None:
|
||||
self.spec, context=spack.context.Context.RUN
|
||||
)
|
||||
mods = setup_context.get_env_modifications()
|
||||
with mods.set_env():
|
||||
python("-c", f"import {module}")
|
||||
python("-c", f"import {module}", env=mods)
|
||||
|
||||
def update_external_dependencies(self, extendee_spec=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user