Skip to content

Commit b076dd1

Browse files
committed
Add hook to restore filtered deps for Graphviz
1 parent 5f36708 commit b076dd1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

eb_hooks.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,19 @@ def pre_configure_hook_extrae(self, *args, **kwargs):
10541054
else:
10551055
raise EasyBuildError("Extrae-specific hook triggered for non-Extrae easyconfig?!")
10561056

1057+
def pre_configure_hook_graphviz(self, *args, **kwargs):
1058+
"""Pre-configure hook for Graphviz:
1059+
- avoid undefined $EBROOTZLIB and $EBROOTLIBTOOL env vars during configure step
1060+
"""
1061+
if self.name == 'Graphviz':
1062+
eprefix = get_eessi_envvar('EPREFIX')
1063+
1064+
for software in ('zlib', 'libtool'):
1065+
var_name = get_software_root_env_var_name(software)
1066+
env.setvar(var_name, os.path.join(eprefix, 'usr'))
1067+
self.deps.append(software)
1068+
else:
1069+
raise EasyBuildError("Graphviz-specific hook triggered for non-Graphviz easyconfig?!")
10571070

10581071
def pre_configure_hook_gobject_introspection(self, *args, **kwargs):
10591072
"""
@@ -1815,6 +1828,7 @@ def post_easyblock_hook(self, *args, **kwargs):
18151828
'CUDA-Samples': pre_configure_hook_CUDA_Samples_test_remove,
18161829
'GObject-Introspection': pre_configure_hook_gobject_introspection,
18171830
'Extrae': pre_configure_hook_extrae,
1831+
'Graphviz': pre_configure_hook_graphviz,
18181832
'GRASS': pre_configure_hook_grass,
18191833
'libfabric': pre_configure_hook_libfabric_disable_psm3_x86_64_generic,
18201834
'LLVM': pre_configure_hook_llvm,

0 commit comments

Comments
 (0)