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
|
self.spec, context=spack.context.Context.RUN
|
||||||
)
|
)
|
||||||
mods = setup_context.get_env_modifications()
|
mods = setup_context.get_env_modifications()
|
||||||
with mods.set_env():
|
python("-c", f"import {module}", env=mods)
|
||||||
python("-c", f"import {module}")
|
|
||||||
|
|
||||||
def update_external_dependencies(self, extendee_spec=None):
|
def update_external_dependencies(self, extendee_spec=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user