set environment file for conda update

This commit is contained in:
mauwii 2022-11-08 22:24:21 +01:00
parent 0f04bc5789
commit e97515d045
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -97,11 +97,13 @@ source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains abou
conda activate
if [ "$OS_NAME" == "mac" ]; then
PIP_EXISTS_ACTION=w CONDA_SUBDIR=osx-${OS_ARCH} conda env update -f environment-mac.yml
environment_file=environment-mac.yml
else
conda env update -f environment.yml
environment_file=environment.yml
fi
conda env update -f $environment_file
status=$?
if test $status -ne 0