Skip to content

Commit

Permalink
Fix install_conda.sh
Browse files Browse the repository at this point in the history
By pinning conda version to 23.5.2 as latest(23.7.2 at this time) does not have a compatible version of `git` packages

Fixes #1473
  • Loading branch information
malfet committed Aug 12, 2023
1 parent bb821d4 commit 8715349
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions common/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
set -ex

# Anaconda
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
# Latest anaconda is using openssl-3 which is incompatible with all currently published versions of git
# Which are using openssl-1.1.1, see https://anaconda.org/anaconda/git/files?version=2.40.1 for example
MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py311_23.5.2-0-Linux-x86_64.sh
wget -q $MINICONDA_URL
# NB: Manually invoke bash per https://github.com/conda/conda/issues/10431
bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
rm Miniconda3-latest-Linux-x86_64.sh
bash $(basename "$MINICONDA_URL") -b -p /opt/conda
rm $(basename "$MINICONDA_URL")
export PATH=/opt/conda/bin:$PATH
# See https://github.com/pytorch/builder/issues/1473
# Pin conda to 23.5.2 as it's the last one compatible with openssl-1.1.1
conda install -y conda=23.5.2 conda-build anaconda-client git ninja
# The cmake version here needs to match with the minimum version of cmake
# supported by PyTorch (3.18). There is only 3.18.2 on anaconda
conda install -y conda-build anaconda-client git ninja cmake=3.18.2
/opt/conda/bin/pip3 install cmake==3.18.2
conda remove -y --force patchelf

0 comments on commit 8715349

Please sign in to comment.