From 3c7821d9fd4584aac7da791b5db9d4f9b7a3e233 Mon Sep 17 00:00:00 2001 From: TopRichard Date: Thu, 21 Sep 2023 09:06:22 +0000 Subject: [PATCH] modified the WRF-hook --- eb_hooks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eb_hooks.py b/eb_hooks.py index 0cc93312c5..7689da24bf 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -244,7 +244,6 @@ def pre_configure_hook_metabat_filtered_zlib_dep(self, *args, **kwargs): else: raise EasyBuildError("MetaBAT-specific hook triggered for non-MetaBAT easyconfig?!") - def pre_configure_hook_wrf_aarch64(self, *args, **kwargs): """ Pre-configure hook for WRF: @@ -257,7 +256,7 @@ def pre_configure_hook_wrf_aarch64(self, *args, **kwargs): if LooseVersion(self.version) <= LooseVersion('3.9.0'): self.cfg.update('preconfigopts', "sed -i 's/%s/%s/g' arch/configure_new.defaults && " % (pattern, repl)) print_msg("Using custom preconfigopts for %s: %s", self.name, self.cfg['preconfigopts']) - + if LooseVersion('4.0.0') <= LooseVersion(self.version) <= LooseVersion('4.2.1'): self.cfg.update('preconfigopts', "sed -i 's/%s/%s/g' arch/configure.defaults && " % (pattern, repl)) print_msg("Using custom preconfigopts for %s: %s", self.name, self.cfg['preconfigopts'])