Skip to content

add support for postinstallmsgs#4145

Merged
boegel merged 2 commits intoeasybuilders:developfrom
PetrKralCZ:20221220105154_new_pr_KVXLwsKBpc
Jan 3, 2023
Merged

add support for postinstallmsgs#4145
boegel merged 2 commits intoeasybuilders:developfrom
PetrKralCZ:20221220105154_new_pr_KVXLwsKBpc

Conversation

@PetrKralCZ
Copy link
Copy Markdown
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
Comment thread easybuild/framework/easyblock.py Outdated
# 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
Copy Markdown
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.

Comment thread easybuild/framework/easyblock.py Outdated

def log_post_install_messages(self):
messages = self.cfg["postinstallmsgs"]
if messages:
Copy link
Copy Markdown
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
Copy Markdown
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