Skip to content

Commit 6fbdda9

Browse files
committed
Updated to latest conda for CentOS stream 9
1 parent 203a289 commit 6fbdda9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.ci/docker/common/install_conda.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ fi
5454

5555
# Prevent conda from updating to 4.14.0, which causes docker build failures
5656
# See https://hud.pytorch.org/pytorch/pytorch/commit/754d7f05b6841e555cea5a4b2c505dd9e0baec1d
57-
# Uncomment the below when resolved to track the latest conda update
58-
# as_jenkins conda update -y -n base conda
57+
# Uncomment the below when resolved to track the latest conda update,
58+
# but this is required for CentOS stream 9 builds
59+
ID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
60+
OS_VERSION=$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')
61+
if [[ $ID == centos && $OS_VERSION == 9 ]]; then
62+
as_jenkins conda update -y -n base conda
63+
fi
5964

6065
# Install correct Python version
6166
as_jenkins conda create -n py_$ANACONDA_PYTHON_VERSION -y python="$ANACONDA_PYTHON_VERSION"

0 commit comments

Comments
 (0)