From fb6208c9bd28883eeefa245171e818db623e43bc Mon Sep 17 00:00:00 2001 From: crivella Date: Thu, 3 Oct 2024 16:27:35 +0200 Subject: [PATCH] Fix exception in case of `f90_wrap` not provided --- easybuild/easyblocks/m/metalwalls.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/easybuild/easyblocks/m/metalwalls.py b/easybuild/easyblocks/m/metalwalls.py index 1241249a7a..50102e388f 100644 --- a/easybuild/easyblocks/m/metalwalls.py +++ b/easybuild/easyblocks/m/metalwalls.py @@ -78,11 +78,12 @@ def configure_step(self): # https://gitlab.com/ampere2/metalwalls/-/wikis/install#plumed plumed = get_software_root('PLUMED') f90wrap = get_software_root('f90wrap') - f90wrap_version = get_software_version('f90wrap') if LooseVersion(self.version) <= LooseVersion('21.06.1'): - if LooseVersion(f90wrap_version) > LooseVersion('0.2.13'): - raise EasyBuildError('MetalWalls version %s requires f90wrap <= 0.2.13' % self.version) + if f90wrap: + f90wrap_version = get_software_version('f90wrap') + if LooseVersion(f90wrap_version) > LooseVersion('0.2.13'): + raise EasyBuildError('MetalWalls version %s requires f90wrap <= 0.2.13' % self.version) tpl_rgx = 'alltests\\.append(suite_%s)' if plumed: