Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
manifest-rules
Commits
0094a837
Commit
0094a837
authored
Nov 25, 2021
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifest-gitlab-ci.yml
View file @
0094a837
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment