easybuild.tools.hooks module

Hook support.

author:Kenneth Hoste (Ghent University)
easybuild.tools.hooks.find_hook(label, hooks, pre_step_hook=False, post_step_hook=False)

Find hook with specified label.

Parameters:
  • label – name of hook
  • hooks – list of defined hooks
  • pre_step_hook – indicates whether hook to run is a pre-step hook
  • post_step_hook – indicates whether hook to run is a post-step hook
easybuild.tools.hooks.load_hooks(hooks_path)

Load defined hooks (if any).

easybuild.tools.hooks.run_hook(label, hooks, pre_step_hook=False, post_step_hook=False, args=None)

Run hook with specified label.

Parameters:
  • label – name of hook
  • hooks – list of defined hooks
  • pre_step_hook – indicates whether hook to run is a pre-step hook
  • post_step_hook – indicates whether hook to run is a post-step hook
  • args – arguments to pass to hook function
easybuild.tools.hooks.verify_hooks(hooks)

Check whether list of obtained hooks only includes known hooks.