Skip to content
Snippets Groups Projects
Commit 6988f0a4 authored by Hans Fangohr's avatar Hans Fangohr
Browse files

suggestestion for output

parent 9dfe86bb
No related branches found
No related tags found
1 merge request!46Status command : add module commands for each microarch
Pipeline #370549 failed
...@@ -989,13 +989,15 @@ def environment_status(mpsd_release: str, root_dir: Union[str, Path]) -> dict: ...@@ -989,13 +989,15 @@ def environment_status(mpsd_release: str, root_dir: Union[str, Path]) -> dict:
# pretty print the toolchain map key as the heading # pretty print the toolchain map key as the heading
# and the value as the list of toolchains # and the value as the list of toolchains
plog.info( plog.info(
f"Toolchains installed in the {mpsd_release=} for each Microarchitecture:" f"Installed toolchains ({mpsd_release}):\n"
) )
for microarch, toolchains in toolchain_map.items(): for microarch, toolchains in toolchain_map.items():
plog.info(f"- {microarch}: \n \t {toolchains}") mod_use = f"[module use {str(release_base_dir / microarch / 'lmod/Core')}]"
plog.info(f"\n\t To load toolchains for {microarch=} use commands :") plog.info(f"- {microarch}")
plog.info(f"\t module use {str(release_base_dir / microarch / 'lmod/Core')}") for toolchain in toolchains:
plog.info("\t module load <toolchain_name>") plog.info(f' {toolchain}')
plog.info(f" [module use {str(release_base_dir / microarch / 'lmod/Core')}]")
plog.info("")
return toolchain_map return toolchain_map
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment