-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for postinstallmsgs #4145
add support for postinstallmsgs #4145
Conversation
easybuild/framework/easyblock.py
Outdated
@@ -2952,6 +2952,12 @@ 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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log_
is a bit of a misnomer, may use print_post_install_messages
?
Please add a docstring to this new function as well.
easybuild/framework/easyblock.py
Outdated
@@ -2952,6 +2952,12 @@ 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps better (also log messages being printed)
msgs = self.cfg['postinstallmsgs'] or []
for msg in msgs:
print_msg(msg, log=self.log)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
(created using
eb --new-pr
)fixes #542