Skip to content
Snippets Groups Projects
Commit c8068da2 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

save available_toolchains

parent 1290db81
Branches
No related tags found
2 merge requests!19Move linux-debian11 into main,!1Resolve "First draft for user interface for top level install command"
......@@ -71,8 +71,6 @@ class builder:
self.cmd_log_file = "logs/install-software-environment.log"
self.build_log_file = f"build_toolchains_{self.mpsd_spack_ver}_{time.strftime('%Y%m%d-%H%M%S')}.log"
# run the script
# self.run() # better to call this seperately after creating the object
......@@ -88,9 +86,7 @@ class builder:
with open(self.cmd_log_file, "a") as f:
f.write("-" * 50 + "\n")
cmd_line = " ".join(sys.argv)
f.write(
f"{datetime.datetime.now().isoformat()}, {cmd_line}\n"
)
f.write(f"{datetime.datetime.now().isoformat()}, {cmd_line}\n")
f.write(
f"Software environment installer branch: {self.script_branch} (commit hash: {self.script_commit_hash})\n"
)
......@@ -146,6 +142,8 @@ class builder:
self.spe_commit_hash = subprocess.run(
["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE
).stdout.decode()
# keep the available toolchains in current spack-environments branch
self.available_toolchains = os.listdir("toolchains")
# Setup the log file for commands
self.setup_log_cmd()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment