Skip to content

Commit a1b77a3

Browse files
authored
Merge pull request #85 from ocaisa/try_except_tc_hierarchy
Not all toolchains may be known to the current EasyBuild version for `eb_hooks.py`
2 parents 4687f94 + a5665bb commit a1b77a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eb_hooks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ def verify_toolchains_supported_by_eessi_version(easyconfigs):
174174
site_top_level_toolchains_envvar = 'EESSI_SITE_TOP_LEVEL_TOOLCHAINS_' + eessi_version.replace('.', '_')
175175
site_top_level_toolchains = parse_list_of_dicts_env(site_top_level_toolchains_envvar)
176176
for top_level_toolchain in EESSI_SUPPORTED_TOP_LEVEL_TOOLCHAINS[eessi_version] + site_top_level_toolchains:
177-
supported_eessi_toolchains += get_toolchain_hierarchy(top_level_toolchain)
177+
try:
178+
supported_eessi_toolchains += get_toolchain_hierarchy(top_level_toolchain)
179+
except EasyBuildError as error:
180+
print_msg(f"No toolchain hierarchy found for {top_level_toolchain}, ignoring! ({error})")
178181
for ec in easyconfigs:
179182
toolchain = ec['ec']['toolchain']
180183
# if it is a system toolchain or appears in the list, we are all good

0 commit comments

Comments
 (0)