Skip to content

Commit 3d0f34c

Browse files
authored
Fix vision build for 3.14 and 3.14t and 3.13t build (#7036)
I see 3.14 and 3.14t and 3.13t builds failing for vision: https://github.com/pytorch/vision/actions/runs/17097200564/job/48484314516 This should fix it, prior to this PR: #7022 Please see successful builds here: https://github.com/pytorch/test-infra/actions/runs/17102204277/job/48501597067?pr=7036
1 parent 5237e15 commit 3d0f34c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/actions/setup-binary-builds/action.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,21 @@ runs:
127127
CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"
128128
export CONDA_EXTRA_PARAM=""
129129
130-
if [[ ( "${PYTHON_VERSION:-}" == *t || "${PYTHON_VERSION:-}" == 3.14* ) && "$(uname)" == Darwin ]]; then
131-
# downgrade conda version for python 3.13t/3.14t install.
132-
# TODO: remove this once python 3.13t/3.14t is fully supported on conda
130+
if [[ "${PYTHON_VERSION:-}" == *t || "${PYTHON_VERSION:-}" == 3.14* ]]; then
131+
132+
# downgrade conda version for python 3.13t, 3.14t, 3.14 install.
133+
# TODO: remove this once python 3.13t, 3.14t, 3.14 is fully supported on conda
133134
# Please see : https://github.com/conda/conda/issues/14554
134-
conda install -y python=3.9
135-
if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then
136-
conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
135+
if [[ "$(uname)" == Darwin ]]; then
136+
# required to be able to downgrade on MacOS arm64
137+
conda install -y python=3.9
138+
if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then
139+
conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
140+
fi
141+
conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
142+
else
143+
conda install -y conda=24.7.1
137144
fi
138-
conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
139145
fi
140146
141147
# shellcheck disable=SC2153

0 commit comments

Comments
 (0)