Skip to content

Commit 1eb3cc2

Browse files
committed
add comment about post_easyblock_hook
1 parent 27c5883 commit 1eb3cc2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

eb_hooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,8 @@ def post_module_hook(self, *args, **kwargs):
13161316
post_module_hook_zen4_gcccore1220(self, *args, **kwargs)
13171317

13181318

1319+
# The post_easyblock_hook was introduced in EasyBuild 5.1.1.
1320+
# Older versions would fail if the function is defined anyway, as EasyBuild performs some checks on function names in hooks files.
13191321
if EASYBUILD_VERSION >= '5.1.1':
13201322
def post_easyblock_hook(self, *args, **kwargs):
13211323
"""Main post easyblock hook: trigger custom functions based on software name."""

0 commit comments

Comments
 (0)