File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 mkdir -p $CONDA_ENVS_CACHE
6666fi
6767
68- echo " -----> Updating conda, conda-env, and pip..."
69- $CONDA_BIN /conda update --yes --quiet conda
70- $CONDA_BIN /conda update --yes --quiet conda-env
71- $CONDA_BIN /conda install --yes --quiet pip
72-
7368CONDA_ENV=" dep_env"
7469
7570echo " -----> Installing Dependencies..."
7671echo " -----> Installing conda environment from environment.yml..."
77- $CONDA_BIN /conda env update --quiet -n dep_env -f " $BUILD_DIR /environment.yml"
72+ $CONDA_BIN /conda env update --quiet -n $CONDA_ENV -f " $BUILD_DIR /environment.yml"
7873$CONDA_BIN /conda clean -pt
7974
8075echo " -----> Caching dependencies to $CONDA_ENVS_CACHE "
@@ -86,7 +81,7 @@ grep -rlI $BUILD_DIR $BUILD_DIR | xargs sed -i.bak "s|$BUILD_DIR|/home/vcap/app|
8681# Add Conda path to profile
8782mkdir -p $( dirname $PROFILE_PATH )
8883echo " export PATH=$HOME /app/.conda/bin:\$ PATH" >> $PROFILE_PATH
89- echo " source activate dep_env " >> $PROFILE_PATH
84+ echo " source activate $CONDA_ENV " >> $PROFILE_PATH
9085
9186if test -f $BUILD_DIR /runtime.txt && grep ' python=' $BUILD_DIR /environment.yml; then
9287 echo " WARNING: you have specified the version of Python runtime both in 'runtime.txt' and 'environment.yml'. You should remove one of the two versions"
You can’t perform that action at this time.
0 commit comments