diff --git a/Custom_Hooks/eb_hooks.py b/Custom_Hooks/eb_hooks.py index 456645f44032314930fb704bbafe5de2b63a544b..da66022ca1fc42636aed5ac70ebd1740a0a7820c 100644 --- a/Custom_Hooks/eb_hooks.py +++ b/Custom_Hooks/eb_hooks.py @@ -83,6 +83,17 @@ def parse_hook(ec, *args, **kwargs): REQUIRE_MODALTSOFTNAME[ec.name], ) + # Check if the module should be installed as hidden + hidden_pkgs = os.getenv("EASYBUILD_HIDE_DEPS").split(',') + if ec.name in hidden_pkgs: + key = "hidden" + if not key in ec_dict or ec_dict[key] is False: + ec[key] = True + ec.log.info( + "[parse hook] Hiding software found in $EASYBUILD_HIDE_DEPS: %s", + ec.name, + ) + # Check if CUDA is in the dependencies, if so add the GPU Lmod tag if ( "CUDA" in [dep[0] for dep in iter(ec_dict["dependencies"])]