Skip to content

Commit

Permalink
modified the WRF-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
TopRichard committed Sep 21, 2023
1 parent 08231fa commit 3c7821d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'])
Expand Down

0 comments on commit 3c7821d

Please sign in to comment.