From e00868c2f757010d5c4aa278ead2544497eaaf12 Mon Sep 17 00:00:00 2001 From: Huanyu He Date: Thu, 20 Feb 2025 19:10:18 -0800 Subject: [PATCH] skip python 3.13t since conda doesn't support it yet (#2757) Summary: Pull Request resolved: https://github.com/pytorch/torchrec/pull/2757 # context * there are failures in torchrec binary validation {F1975312017} * because conda can't support python 3.13t ``` $ conda create -n test python=3.13t Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - python=3.13t Current channels: - https://repo.anaconda.com/pkgs/main/linux-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/linux-64 - https://repo.anaconda.com/pkgs/r/noarch To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page. ``` Reviewed By: sarckk Differential Revision: D69962038 fbshipit-source-id: 6cdb73f19e3fbfff8abbd80e4587f482a3e06d0d --- .github/scripts/validate_binaries.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/scripts/validate_binaries.sh b/.github/scripts/validate_binaries.sh index 076672bbb..a0c4234a8 100755 --- a/.github/scripts/validate_binaries.sh +++ b/.github/scripts/validate_binaries.sh @@ -9,6 +9,11 @@ export PYTORCH_CUDA_PKG="" export CONDA_ENV="build_binary" +if [[ ${MATRIX_PYTHON_VERSION} = '3.13t' ]]; then + echo "Conda doesn't support 3.13t yet, you can just try \`conda create -n test python=3.13t\`" + exit 0 +fi + conda create -y -n "${CONDA_ENV}" python="${MATRIX_PYTHON_VERSION}" conda run -n build_binary python --version