Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Dec 2, 2023
2 parents 349279e + 8b721b8 commit e7c571d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mesaport/Installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def install(self, version, ostype, directory, cleanAfter):

with subprocess.Popen(f"/bin/bash -c \"export MESASDK_ROOT={sdk_dir} && \
source {sdk_dir}/bin/mesasdk_init.sh && gfortran --version\"",
shell=True, stdout=logfile, stderr=logfile) as proc:
shell=True, stdout=logfile, stderr=logfile, env=os.environ.copy()) as proc:
proc.wait()
if proc.returncode != 0:
raise Exception("MESA SDK initialization failed. \
Expand All @@ -96,7 +96,7 @@ def install(self, version, ostype, directory, cleanAfter):
&& make -C {mesa_dir}/gyre/gyre \\
&& export GYRE_DIR={mesa_dir}/gyre/gyre \"
'''
with subprocess.Popen(run_in_shell, shell=True, stdout=logfile, stderr=logfile) as proc:
with subprocess.Popen(run_in_shell, shell=True, stdout=logfile, stderr=logfile, env=os.environ.copy()) as proc:
proc.wait()
if proc.returncode != 0:
raise Exception("MESA installation failed. \
Expand Down
8 changes: 4 additions & 4 deletions mesaport/Installer/mesaurls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"r15140": "https://zenodo.org/record/4311514/files/mesa-r15140.zip",
"r12778": "https://zenodo.org/record/7319739/files/mesa-r12778.zip"}

linux_sdk_urls = {"latest": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-22.6.1.tar.gz",
"r23.05.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-22.6.1.tar.gz",
linux_sdk_urls = {"latest": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-23.7.3.tar.gz",
"r23.05.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-23.7.3.tar.gz",
"r22.11.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-22.6.1.tar.gz",
"r22.05.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-22.6.1.tar.gz",
"r21.12.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-linux-21.4.1.tar.gz",
Expand All @@ -26,8 +26,8 @@
"r15140": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-macos-21.11.1.pkg",
"r12778": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-x86_64-macos-20.11.1.pkg"}

mac_arm_sdk_urls = {"latest": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-aarch64-macos-22.10.1.pkg",
"r23.05.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-aarch64-macos-22.10.1.pkg",
mac_arm_sdk_urls = {"latest": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-aarch64-macos-23.10.1.pkg",
"r23.05.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-aarch64-macos-23.10.1.pkg",
"r22.11.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-aarch64-macos-22.10.1.pkg",
"r22.05.1": "http://user.astro.wisc.edu/~townsend/resource/download/mesasdk/mesasdk-aarch64-macos-22.10.1.pkg"}

Expand Down

0 comments on commit e7c571d

Please sign in to comment.