Skip to content

Commit 3dbdf52

Browse files
committed
only trigger post_easyblock_hook_copy_easybuild_subdir for EESSI 2025.06 and newer
1 parent 1eb3cc2 commit 3dbdf52

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

eb_hooks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,9 +1324,10 @@ def post_easyblock_hook(self, *args, **kwargs):
13241324
if self.name in POST_EASYBLOCK_HOOKS:
13251325
POST_EASYBLOCK_HOOKS[self.name](self, *args, **kwargs)
13261326

1327-
# Always trigger this one for EESSI CVMFS/site installations, regardless of self.name
1327+
# Always trigger this one for EESSI CVMFS/site installations and version 2025.06 or newer, regardless of self.name
13281328
if os.getenv('EESSI_CVMFS_INSTALL') or os.getenv('EESSI_SITE_INSTALL'):
1329-
post_easyblock_hook_copy_easybuild_subdir(self, *args, **kwargs)
1329+
if os.getenv('EESSI_VERSION') and LooseVersion(os.getenv('EESSI_VERSION')) >= '2025.06':
1330+
post_easyblock_hook_copy_easybuild_subdir(self, *args, **kwargs)
13301331
else:
13311332
self.log.debug("No CVMFS/site installation requested, not running post_easyblock_hook_copy_easybuild_subdir.")
13321333
else:

0 commit comments

Comments
 (0)