From e4927b093c29f8cd8ec78dd213f97da7100e4085 Mon Sep 17 00:00:00 2001
From: Hans Fangohr <fangohr@users.noreply.github.com>
Date: Wed, 7 Jun 2023 10:02:29 +0200
Subject: [PATCH] undo changes in calling the function to prepare for other MR

from Ashwin to address https://gitlab.gwdg.de/mpsd-cs/mpsd-software-environments/-/issues/7
---
 mpsd-software-environment.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mpsd-software-environment.py b/mpsd-software-environment.py
index ed5ea43..6a1531e 100755
--- a/mpsd-software-environment.py
+++ b/mpsd-software-environment.py
@@ -572,8 +572,8 @@ def install_environment(
     # Set required variables
     release_base_dir = script_dir / mpsd_release
     os.environ.get("MPSD_OS", "UNKNOWN_OS")
-    microarch = get_native_microarchitecture()
-    toolchain_dir = release_base_dir / microarch
+    mpsd_microarch = os.environ.get("MPSD_MICROARCH", "UNKNOWN_MICROARCH")
+    toolchain_dir = release_base_dir / mpsd_microarch
     toolchain_dir.mkdir(parents=True, exist_ok=True)
     spack_setup_script = release_base_dir / "spack-environments" / "spack_setup.sh"
     install_flags = []
-- 
GitLab