Skip to content

Commit

Permalink
Circumvent conda install bug in >= 23.10.0 (#2146)
Browse files Browse the repository at this point in the history
Summary:
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.

Pull Request resolved: #2146

Reviewed By: saitcakmak

Differential Revision: D52006981

Pulled By: Balandat

fbshipit-source-id: 45e4512b0041d70630e8b0eaf3fc5bdc58ef6809
  • Loading branch information
Balandat authored and facebook-github-bot committed Dec 11, 2023
1 parent 9354fd7 commit 8f1df5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:
- name: Install dependencies
shell: bash -l {0}
run: |
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
conda config --set solver classic
conda install -y setuptools_scm conda-build conda-verify anaconda-client
conda install -y scipy sphinx pytest flake8 multipledispatch
conda install -y -c pytorch pytorch cpuonly
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ jobs:
# Don't need most deps for conda build, but need them for testing
# We do need setuptools_scm though to properly parse the version
run: |
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
conda config --set solver classic
conda install -y scipy multipledispatch setuptools_scm conda-build conda-verify
conda config --set anaconda_upload no
conda install -y -c pytorch-nightly pytorch cpuonly
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
env:
ALLOW_LATEST_GPYTORCH_LINOP: true
run: |
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
conda config --set solver classic
conda install pytorch torchvision -c pytorch
conda install -y pip scipy sphinx pytest flake8
pip install git+https://github.com/cornellius-gp/linear_operator.git
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
- name: Install dependencies
shell: bash -l {0}
run: |
# avoid conda bug in >=23.10.0: https://github.com/conda/conda/issues/13412
conda config --set solver classic
conda install -y -c pytorch pytorch cpuonly
conda install -y pip scipy pytest
conda install -y -c gpytorch gpytorch
Expand Down

0 comments on commit 8f1df5a

Please sign in to comment.