Skip to content

Commit fef5d6c

Browse files
committed
added install_arc.sh
1 parent e45a30e commit fef5d6c

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

devtools/install_all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ conda config --set solver libmamba
1313
echo ">>> Beginning full ARC external repo installation..."
1414
pushd . >/dev/null
1515

16+
bash devtools/install_arc.sh
1617
bash devtools/install_rmg.sh
1718
bash devtools/install_molecule.sh
1819
bash devtools/install_gcn_cpu.sh

devtools/install_arc.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -eo pipefail
3+
4+
ENV_NAME="arc_env"
5+
ENV_FILE="environment.yml"
6+
7+
# Initialize conda for bash
8+
source "$(conda info --base)/etc/profile.d/conda.sh"
9+
10+
# Check if the environment exists
11+
if conda env list | grep -qw "$ENV_NAME"; then
12+
echo "✔️ Environment '$ENV_NAME' exists. Updating from $ENV_FILE..."
13+
conda env update -n "$ENV_NAME" -f "$ENV_FILE"
14+
else
15+
echo "📦 Creating environment '$ENV_NAME' from $ENV_FILE..."
16+
conda env create -n "$ENV_NAME" -f "$ENV_FILE"
17+
fi
18+
19+
echo "✅ ARC environment setup complete."

0 commit comments

Comments
 (0)