Skip to content

Commit

Permalink
skip python 3.13t since conda doesn't support it yet (#2757)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
TroyGarden authored and facebook-github-bot committed Feb 21, 2025
1 parent 455d976 commit e00868c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/validate_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e00868c

Please sign in to comment.