Skip to content

Commit

Permalink
don't load fake module in ExtensionEasyBlock.sanity_check_step if mod…
Browse files Browse the repository at this point in the history
…ule was already loaded earlier in sanity check
  • Loading branch information
boegel committed Nov 24, 2022
1 parent 6201434 commit e282dbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easybuild/framework/extensioneasyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def sanity_check_step(self, exts_filter=None, custom_paths=None, custom_commands
fake_mod_data = None

# only load fake module + extra modules for stand-alone installations (not for extensions),
# since for extension the necessary modules should already be loaded at this point
if not (self.is_extension or self.dry_run):
# since for extension the necessary modules should already be loaded at this point;
# take into account that module may already be loaded earlier in sanity check
if not (self.sanity_check_module_loaded or self.is_extension or self.dry_run):
# load fake module
fake_mod_data = self.load_fake_module(purge=True, extra_modules=extra_modules)

Expand Down

0 comments on commit e282dbe

Please sign in to comment.