Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKralCZ committed Dec 21, 2022
1 parent 3c88d6b commit 889b093
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand All @@ -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()

Expand Down

0 comments on commit 889b093

Please sign in to comment.