File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,13 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
44
44
45
45
# Prevent conda from updating to 4.14.0, which causes docker build failures
46
46
# See https://hud.pytorch.org/pytorch/pytorch/commit/754d7f05b6841e555cea5a4b2c505dd9e0baec1d
47
- # Uncomment the below when resolved to track the latest conda update
48
- # as_jenkins conda update -y -n base conda
47
+ # Uncomment the below when resolved to track the latest conda update,
48
+ # but this is required for CentOS stream 9 builds
49
+ ID=$( grep -oP ' (?<=^ID=).+' /etc/os-release | tr -d ' "' )
50
+ OS_VERSION=$( grep -oP ' (?<=^VERSION_ID=).+' /etc/os-release | tr -d ' "' )
51
+ if [[ $ID == centos && $OS_VERSION == 9 ]]; then
52
+ as_jenkins conda update -y -n base conda
53
+ fi
49
54
50
55
# Install correct Python version
51
56
as_jenkins conda create -n py_$ANACONDA_PYTHON_VERSION -y python=" $ANACONDA_PYTHON_VERSION "
You can’t perform that action at this time.
0 commit comments