Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Load anaconda first before checking if environment exists
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 18, 2024
1 parent a0881ab commit 7ddcc30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion buildscripts/build_rcac_gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ MACHINE_NAME=$(uname -n | awk -F. '{
print "Unknown";
}
}')
if [[ $MACHINE_NAME == "bell" ]]; then
module load anaconda/2020.11-py38
elif [[ $MACHINE_NAME == "negishi" ]]; then
module load anaconda/2022.10-py39
fi

if { conda env list | grep 'mintongroup'; } >/dev/null 2>&1; then
echo "The mintongroup conda environment was detected"
Expand All @@ -37,7 +42,6 @@ else
fi



if [[ $MACHINE_NAME == "bell" ]]; then
module purge
module use /depot/daminton/etc/modules/bell
Expand Down
5 changes: 5 additions & 0 deletions buildscripts/build_rcac_intel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ MACHINE_NAME=$(uname -n | awk -F. '{
print "Unknown";
}
}')
if [[ $MACHINE_NAME == "bell" ]]; then
module load anaconda/2020.11-py38
elif [[ $MACHINE_NAME == "negishi" ]]; then
module load anaconda/2022.10-py39
fi

if { conda env list | grep 'mintongroup'; } >/dev/null 2>&1; then
print -n "The mintongroup conda environment was detected"
Expand Down

0 comments on commit 7ddcc30

Please sign in to comment.