Commit 515b97b
enable python 3.13t (freethreading) in binary validation workflow (#3049)
Summary:
Pull Request resolved: #3049
# context
* python 3.13t was never supported in the github "binary validation" workflow due to lack of conda native support
```
$ conda create -n py313t 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.
```
* therefore previously the validation workflow for python3.13t is alway skipped (early return)
```
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
```
* the workaround is to use conda-forge channel to get the freethreading python
https://conda-forge.org/blog/2024/09/26/python-313/
```
conda create -n py313 python=3.13 python-freethreading -c conda-forge
```
Reviewed By: iamzainhuda
Differential Revision: D76109652
fbshipit-source-id: d711832ff7e5b9a6725aefd6cb66c6fabd5a2c6b1 parent 3dbdf4a commit 515b97b
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments