Skip to content
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

Merged

Conversation

PetrKralCZ
Copy link
Contributor

@PetrKralCZ PetrKralCZ commented Dec 20, 2022

(created using eb --new-pr)

fixes #542

@boegel boegel changed the title add postinstallmsgs, fixes #542 add support for postinstallmsgs Dec 21, 2022
@boegel boegel added this to the 4.x milestone Dec 21, 2022
@@ -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):
Copy link
Member

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.

@@ -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:
Copy link
Member

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)

@easybuilders easybuilders deleted a comment from boegelbot Dec 21, 2022
@boegel boegel modified the milestones: 4.x, release after 4.7.0 Dec 21, 2022
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit c6623dc into easybuilders:develop Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow setting post message from easyconfig file
2 participants