diff --git a/easybuild/easyblocks/generic/bundle.py b/easybuild/easyblocks/generic/bundle.py index 80a8513355a..fb0bf2ade20 100644 --- a/easybuild/easyblocks/generic/bundle.py +++ b/easybuild/easyblocks/generic/bundle.py @@ -378,8 +378,9 @@ def install_step(self): else: # Explicit call as EasyBlocks might set additional environment variables in # the make_module step, which may be required for later component builds. - # Set fake arg to True, as module components should not try to create their own module. - comp.make_module_step(fake=True) + # Set fake arg to True, as module components should not try to create their own module + with comp.cfg.allow_unresolved_templates(): + comp.make_module_step(fake=True) # Update current environment with component environment to ensure stuff provided # by this component can be picked up by installation of subsequent components @@ -436,7 +437,8 @@ def make_module_step(self, *args, **kwargs): # Explicit call required as adding step to 'install_step' is not sufficient # for module-only build. Set fake arg to True, as module components should # not try to create their own module. - comp.make_module_step(*args, **dict(kwargs, fake=True)) + with comp.cfg.allow_unresolved_templates(): + comp.make_module_step(*args, **dict(kwargs, fake=True)) for env_var_name, env_var_val in comp.module_load_environment.items(): if env_var_name in self.module_load_environment: