Skip to content

Commit

Permalink
Added compatibility check with f90wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
Crivella committed May 15, 2024
1 parent b131ada commit 39195f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion easybuild/easyblocks/m/metalwalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@

import easybuild.tools.environment as env
import easybuild.tools.toolchain as toolchain
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.modules import get_software_root
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd

from easybuild.easyblocks.generic.makecp import MakeCp
Expand Down Expand Up @@ -77,6 +78,11 @@ 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)

tpl_rgx = 'alltests\\.append(suite_%s)'
if plumed:
Expand Down

0 comments on commit 39195f9

Please sign in to comment.