From 3a6378c378bc1fd9e51dba77fb04fc2576699515 Mon Sep 17 00:00:00 2001 From: Alan O'Cais <a.ocais@fz-juelich.de> Date: Tue, 18 May 2021 14:52:30 +0200 Subject: [PATCH] Always hide software that is a hidden dep --- Custom_Hooks/eb_hooks.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Custom_Hooks/eb_hooks.py b/Custom_Hooks/eb_hooks.py index 456645f44..da66022ca 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"])] -- GitLab