File tree 2 files changed +26
-18
lines changed
2 files changed +26
-18
lines changed Original file line number Diff line number Diff line change @@ -304,17 +304,21 @@ jobs:
304
304
# Set up environment
305
305
conda config --set always_yes yes
306
306
conda config --set auto_update_conda false
307
- #conda config --remove channels defaults
308
- #conda config --append channels nodefaults
307
+ conda config --set channel_priority strict
308
+ conda config --remove channels defaults
309
+ conda config --append channels nodefaults
309
310
conda config --append channels conda-forge
310
311
# Try to install mamba
311
- # Note: removed '--update-deps' on 2025-02-28 to work around
312
- # broken libffi(?)
313
- conda install -q -y -n base conda-libmamba-solver \
314
- || MAMBA_FAILED=1
315
- if test -z "$MAMBA_FAILED"; then
316
- echo "*** Activating the mamba environment solver ***"
317
- conda config --set solver libmamba
312
+ CONDA_VER=$(conda --version | cut -d\ -f2)
313
+ if test 23.10 = "`echo -e "23.10\n$CONDA_VER" | sort -V | tail -1`"; then
314
+ # Note: removed '--update-deps' on 2025-02-28 to work around
315
+ # broken libffi(?)
316
+ conda install -q -y -n base conda-libmamba-solver \
317
+ || MAMBA_FAILED=1
318
+ if test -z "$MAMBA_FAILED"; then
319
+ echo "*** Activating the mamba environment solver ***"
320
+ conda config --set solver libmamba
321
+ fi
318
322
fi
319
323
# Add the rest of the channels
320
324
conda config --append channels gurobi
Original file line number Diff line number Diff line change @@ -341,17 +341,21 @@ jobs:
341
341
# Set up environment
342
342
conda config --set always_yes yes
343
343
conda config --set auto_update_conda false
344
- #conda config --remove channels defaults
345
- #conda config --append channels nodefaults
344
+ conda config --set channel_priority strict
345
+ conda config --remove channels defaults
346
+ conda config --append channels nodefaults
346
347
conda config --append channels conda-forge
347
348
# Try to install mamba
348
- # Note: removed '--update-deps' on 2025-02-28 to work around
349
- # broken libffi(?)
350
- conda install -q -y -n base conda-libmamba-solver \
351
- || MAMBA_FAILED=1
352
- if test -z "$MAMBA_FAILED"; then
353
- echo "*** Activating the mamba environment solver ***"
354
- conda config --set solver libmamba
349
+ CONDA_VER=$(conda --version | cut -d\ -f2)
350
+ if test 23.10 = "`echo -e "23.10\n$CONDA_VER" | sort -V | tail -1`"; then
351
+ # Note: removed '--update-deps' on 2025-02-28 to work around
352
+ # broken libffi(?)
353
+ conda install -q -y -n base conda-libmamba-solver \
354
+ || MAMBA_FAILED=1
355
+ if test -z "$MAMBA_FAILED"; then
356
+ echo "*** Activating the mamba environment solver ***"
357
+ conda config --set solver libmamba
358
+ fi
355
359
fi
356
360
# Add the rest of the channels
357
361
conda config --append channels gurobi
You can’t perform that action at this time.
0 commit comments