From 65a906aaf9a32e4ba9c64ce8a34a182f8eae230e Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 11 Mar 2025 04:48:16 -0700 Subject: [PATCH] Add guad for conda unistall of conda-anaconda-telemetry --- .github/actions/setup-binary-builds/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-binary-builds/action.yml b/.github/actions/setup-binary-builds/action.yml index fbcb49a315..b44a77b2b6 100644 --- a/.github/actions/setup-binary-builds/action.yml +++ b/.github/actions/setup-binary-builds/action.yml @@ -149,9 +149,11 @@ runs: # TODO: remove this once python 3.13t is fully suported on conda # Please see : https://github.com/conda/conda/issues/14554 if [[ "$(uname)" == Darwin ]]; then - # required to be able to downgrade on MacOS m1 side + # required to be able to downgrade on MacOS arm64 conda install -y python=3.9 - conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos + if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then + conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos + fi fi conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0 fi