Skip to content
Snippets Groups Projects

BrainScaleS: Fix segfault on exit() and provide run environment in install tests

Merged Eric Müller requested to merge try_to_fix_BrainScaleS_install_tests into master
Files
6
@@ -14,10 +14,10 @@ class Hxtorch(WafPackage):
# This repo provides a waf binary used for the build below
git = "https://github.com/electronicvisions/pynn-brainscales.git"
version('4.0-a4', branch='waf')
version('4.0-rc1', branch='waf')
# PPU compiler dependencies
depends_on('oppulance@4.0-a4')
depends_on('oppulance@4.0-rc1')
# host software dependencies
depends_on('bitsery', type=('build', 'link', 'run'))
@@ -35,6 +35,7 @@ class Hxtorch(WafPackage):
depends_on('llvm', type=('build', 'link', 'run'))
depends_on('log4cxx@0.12.1:', type=('build', 'link', 'run'))
depends_on('pkgconfig', type=('build', 'link', 'run'))
depends_on('psmisc', type=('run', 'test'))
depends_on('python@3.7.0:', type=('build', 'link', 'run')) # BrainScaleS(-2, type=('build', 'link', 'run')) only supports Python >= 3.7
depends_on('py-h5py', type=('build', 'link', 'run')) # PyNN tests need it
depends_on('py-jax@0.3.25:', type=('build', 'link', 'run'))
@@ -153,6 +154,8 @@ class Hxtorch(WafPackage):
'--project=flange@ebrains-' + str(spec.version),
'--project=lib-rcf@ebrains-' + str(spec.version),
'--project=bss-hw-params@ebrains-' + str(spec.version),
'--project=nhtl-extoll@ebrains-' + str(spec.version),
'--project=librma@ebrains-' + str(spec.version),
'--project=libnux@ebrains-' + str(spec.version)
)
@@ -168,12 +171,14 @@ class Hxtorch(WafPackage):
return args
def build_test(self):
self.waf('install', '--test-execall')
self.waf('build', '--test-execall')
def install_args(self):
args = ['--test-execnone']
return args
# def install_test(self):
# with working_dir('spack-test', create=True):
# python('-c', 'import hxtorch; print(hxtorch.__file__)')
def install_test(self):
with working_dir('spack-test', create=True):
old_pythonpath = os.environ.get('PYTHONPATH', '')
os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath])
python('-v', '-X dev', '-c', 'import hxtorch; print(hxtorch.__file__)')