Skip to content

Commit 793cb2f

Browse files
authored
Merge pull request #39 from bedroge/hooks_last_log_fix
print warning about `post_easyblock_hook` to stderr
2 parents 8cda179 + 26e6056 commit 793cb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eb_hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from easybuild.easyblocks.generic.configuremake import obtain_config_guess
1010
from easybuild.framework.easyconfig.constants import EASYCONFIG_CONSTANTS
1111
from easybuild.tools import config
12-
from easybuild.tools.build_log import EasyBuildError, print_msg
12+
from easybuild.tools.build_log import EasyBuildError, print_msg, print_warning
1313
from easybuild.tools.config import build_option, install_path, update_build_option
1414
from easybuild.tools.filetools import apply_regex_substitutions, copy_dir, copy_file, remove_file, symlink, which
1515
from easybuild.tools.run import run_cmd
@@ -1331,7 +1331,7 @@ def post_easyblock_hook(self, *args, **kwargs):
13311331
else:
13321332
self.log.debug("No CVMFS/site installation requested, not running post_easyblock_hook_copy_easybuild_subdir.")
13331333
else:
1334-
print_msg(f"Not enabling the post_easybuild_hook, as it requires EasyBuild 5.1.1 or newer.")
1334+
print_warning(f"Not enabling the post_easybuild_hook, as it requires EasyBuild 5.1.1 or newer (you are using {EASYBUILD_VERSION}).")
13351335

13361336

13371337
PARSE_HOOKS = {

0 commit comments

Comments
 (0)