Skip to content

Commit 49205fb

Browse files
committed
Add in comment for install-activate-conda script
1 parent cbe0136 commit 49205fb

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#!/bin/bash
2-
2+
3+
#This file allows you to install a custom conda environment
4+
#If you want to install a service conda provided by OCI DS, modify line 22 to odsc conda install -s "$ENV_NAME"
5+
36
# enable conda commands
47
source /etc/profile.d/enableconda.sh
5-
8+
69
# Replace this with name of the conda environment to create or activate
710
ENV_NAME="{ODSC_CONDA_PACK_SLUG}"
8-
11+
912
# Path to the conda environment folder
1013
ENV_FOLDER="$HOME/conda"
11-
14+
1215
# Check if the conda environment exists
1316
if [ -d "$ENV_FOLDER/$ENV_NAME" ]
1417
then
@@ -17,8 +20,8 @@ else
1720
echo "Conda environment '$ENV_NAME' not found, installing..."
1821
odsc conda install -s "$ENV_NAME" -o
1922
fi
20-
23+
2124
# Activate the conda environment
2225
conda activate "$ENV_FOLDER"/"$ENV_NAME"
23-
24-
echo "Conda environment '$ENV_NAME' is now activated."
26+
27+
echo "Conda environment '$ENV_NAME' is now activated."

0 commit comments

Comments
 (0)