Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions easybuild/tools/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,16 +726,16 @@ def list_software_txt(software, detailed=False):
def list_toolchains(output_format=FORMAT_TXT):
"""Show list of known toolchains."""
_, all_tcs = search_toolchain('')
all_tcs_names = [x.NAME for x in all_tcs]
tclist = sorted(zip(all_tcs_names, all_tcs))

tcs = dict()
for (tcname, tcc) in tclist:
# filter deprecated 'dummy' toolchain
all_tcs = [x for x in all_tcs if x.NAME != DUMMY_TOOLCHAIN_NAME]
all_tcs_names = [x.NAME for x in all_tcs]

# filter deprecated 'dummy' toolchain
if tcname == DUMMY_TOOLCHAIN_NAME:
continue
# start with dict that maps toolchain name to corresponding subclass of Toolchain
tcs = dict(zip(all_tcs_names, all_tcs))

for tcname in sorted(tcs):
tcc = tcs[tcname]
tc = tcc(version='1.2.3') # version doesn't matter here, but something needs to be there
tcs[tcname] = tc.definition()

Expand Down