Skip to content
Snippets Groups Projects
Commit 37f28dd6 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

BrainScaleS: Provide run environment in install tests

Install tests don't seem to use the environment provided by
`def setup_run_environment(…)`; we work around by providing the
necessary PYTHONPATH environment variable manually.
parent bcfd735e
No related branches found
No related tags found
3 merge requests!303update release candidate,!302create new experimental release,!264BrainScaleS: Fix segfault on exit() and provide run environment in install tests
Pipeline #21059 failed with stage
in 5 hours, 55 minutes, and 8 seconds
...@@ -176,4 +176,6 @@ class Hxtorch(WafPackage): ...@@ -176,4 +176,6 @@ class Hxtorch(WafPackage):
def install_test(self): def install_test(self):
with working_dir('spack-test', create=True): with working_dir('spack-test', create=True):
old_pythonpath = os.environ.get('PYTHONPATH', '')
os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath])
python('-c', 'import hxtorch; print(hxtorch.__file__)') python('-c', 'import hxtorch; print(hxtorch.__file__)')
...@@ -153,4 +153,6 @@ class PynnBrainscales(WafPackage): ...@@ -153,4 +153,6 @@ class PynnBrainscales(WafPackage):
def install_test(self): def install_test(self):
with working_dir('spack-test', create=True): with working_dir('spack-test', create=True):
old_pythonpath = os.environ.get('PYTHONPATH', '')
os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath])
python('-c', 'import pynn_brainscales; print(pynn_brainscales.__file__)') python('-c', 'import pynn_brainscales; print(pynn_brainscales.__file__)')
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment