Skip to content

Commit 48e3af0

Browse files
committed
Circumvent conda install bug in >= 23.10.0
In newer conda versions, some packages end up not being installed correctly: conda/conda#13412 Selecting the classic solver fixes this issue. This does this for all conda github workflows. Once this is fixed in conda itself we can remove this setting again.
1 parent 9354fd7 commit 48e3af0

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/deploy_on_release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
- name: Install dependencies
8383
shell: bash -l {0}
8484
run: |
85+
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
86+
conda config --set solver classic
8587
conda install -y setuptools_scm conda-build conda-verify anaconda-client
8688
conda install -y scipy sphinx pytest flake8 multipledispatch
8789
conda install -y -c pytorch pytorch cpuonly

.github/workflows/nightly.yml

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
# Don't need most deps for conda build, but need them for testing
107107
# We do need setuptools_scm though to properly parse the version
108108
run: |
109+
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
110+
conda config --set solver classic
109111
conda install -y scipy multipledispatch setuptools_scm conda-build conda-verify
110112
conda config --set anaconda_upload no
111113
conda install -y -c pytorch-nightly pytorch cpuonly

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
env:
6060
ALLOW_LATEST_GPYTORCH_LINOP: true
6161
run: |
62+
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
63+
conda config --set solver classic
6264
conda install pytorch torchvision -c pytorch
6365
conda install -y pip scipy sphinx pytest flake8
6466
pip install git+https://github.com/cornellius-gp/linear_operator.git

.github/workflows/test_stable.yml

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- name: Install dependencies
4646
shell: bash -l {0}
4747
run: |
48+
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
49+
conda config --set solver classic
4850
conda install -y -c pytorch pytorch cpuonly
4951
conda install -y pip scipy pytest
5052
conda install -y -c gpytorch gpytorch

0 commit comments

Comments
 (0)