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

reorder the logs_cmd location

parent c0f02d3f
No related branches found
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,7 @@ 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"
# Setup the log file for commands
self.setup_log_cmd()
# run the script
# self.run() # better to call this seperately after creating the object
......@@ -140,6 +139,16 @@ class builder:
)
with os_chdir("spack-environments"):
subprocess.run(["git", "checkout", self.mpsd_spack_ver])
self.spe_branch = subprocess.run(
["git", "rev-parse", "--abbrev-ref", "HEAD"],
stdout=subprocess.PIPE,
).stdout.decode()
self.spe_commit_hash = subprocess.run(
["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE
).stdout.decode()
# Setup the log file for commands
self.setup_log_cmd()
def build_toolchains(
self,
......
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