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 54
54
55
55
# Prevent conda from updating to 4.14.0, which causes docker build failures
56
56
# 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
59
64
60
65
# Install correct Python version
61
66
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