Commit 0094a837 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Handle case where conda is not in runner environment $PATH (or conda is a

shell function rather than executable)
parent aba63973
......@@ -16,7 +16,8 @@ default:
mkdir ./conda-dir;
export CONDA_ENVS_DIRS=$(pwd)/conda-dir/;
export CONDA_PKGS_DIRS=$(pwd)/conda-dir/.pkgs;
CONDABINDIR=$(dirname $(which conda))/../bin/;
CONDABIN=$(which conda || echo "${HOME}/miniconda3/bin/conda");
CONDABINDIR=$(dirname ${CONDABIN})/../bin/;
conda create -c conda-forge -p ./env python=3.9;
if [ -f "$CONDABINDIR"/activate ]; then source $CONDABINDIR/activate ./env;
else conda activate ./env; fi;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment