Skip to content

Commit

Permalink
Revert "feat(python-job): use index cache when creating conda env"
Browse files Browse the repository at this point in the history
This reverts commit 2ae8f4b.

Might fail env creation when needed packages are not in stale cache.
  • Loading branch information
heilerich committed Sep 29, 2022
1 parent 5845f57 commit a7cdad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-job/exec-with-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

if [ -f "${CONDA_ENV_PATH}" ]; then
cp "${CONDA_ENV_PATH}" /tmp/conda-environment.yml
mamba env create -f /tmp/conda-environment.yml --use-index-cache
mamba env create -f /tmp/conda-environment.yml
export ENV_NAME=`cat "${CONDA_ENV_PATH}" | grep 'name: ' | sed 's/name: \(.*\)/\1/'`
echo "${ENV_NAME}" >> /tmp/CONDA_ENV
conda activate "${ENV_NAME}"
Expand Down

0 comments on commit a7cdad4

Please sign in to comment.