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

work in progress

parent 01c2afcc
No related branches found
No related tags found
1 merge request!36Available command
Pipeline #370442 failed
......@@ -8,6 +8,7 @@ import logging
import os
import subprocess
import sys
import tempfile
import time
from pathlib import Path
from typing import List, Tuple, Union
......@@ -331,6 +332,13 @@ def get_available_toolchains(release: str) -> List[str]:
- clone spack_environments to temporary location
- use `get_release_info(mpsd_release, script_dir)` on that directory.
"""
logging.debug(f"get_available_toolchains({release=})")
with tempfile.TemporaryDirectory() as tmp_dir:
clone_repo(Path(tmp_dir), config_vars["spack_environments_repo"])
result = get_release_info('dev-23a', tmp_dir)
logging.debug(f"{result=}")
print (result)
......@@ -966,6 +974,12 @@ def main():
)
elif args.action == "prepare":
prepare_environment(args.release, script_dir)
elif args.action == "available":
get_available_toolchains(args.release)
else:
message = f"No known action found ({args.action=}). Should probably never happen."
logging.error(message)
raise NotImplementedError(message)
if __name__ == "__main__":
......
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