From a7cdad4b1643c0253d4b66971161ab23d150cfae Mon Sep 17 00:00:00 2001 From: Felix Heilmeyer Date: Thu, 29 Sep 2022 19:56:58 +0200 Subject: [PATCH] Revert "feat(python-job): use index cache when creating conda env" This reverts commit 2ae8f4b3fb0c1e70e670c8bda4707ced6ace28d7. Might fail env creation when needed packages are not in stale cache. --- python-job/exec-with-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-job/exec-with-env.sh b/python-job/exec-with-env.sh index 0d314b2..e858ba6 100755 --- a/python-job/exec-with-env.sh +++ b/python-job/exec-with-env.sh @@ -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}"