diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index ab05a077cb..b830a25852 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -2952,11 +2952,13 @@ def apply_post_install_patches(self, patches=None): # To allow postinstallpatches for Bundle, and derived, easyblocks we directly call EasyBlock.patch_step EasyBlock.patch_step(self, beginpath=self.installdir, patches=patches) - def log_post_install_messages(self): - messages = self.cfg["postinstallmsgs"] - if messages: - for message in messages: - print_msg(message) + def print_post_install_messages(self): + """ + Print post-install messages that are specified via the 'postinstallmsgs' easyconfig parameter. + """ + msgs = self.cfg['postinstallmsgs'] or [] + for msg in msgs: + print_msg(msg, log=self.log) def post_install_step(self): """ @@ -2966,7 +2968,7 @@ def post_install_step(self): self.run_post_install_commands() self.apply_post_install_patches() - self.log_post_install_messages() + self.print_post_install_messages() self.fix_shebang()