Skip to content

Commit 65b82f9

Browse files
TroyGardenfacebook-github-bot
authored andcommitted
fix python 3.13t version for release binary validation (pytorch#3095)
Summary: Pull Request resolved: pytorch#3095 # context * D76109652 fixed the python 3.13t for the general binary validation but it's also needed for release binary validation * running binary validation for release using workflow from v1.2.0 {F1979193721} Reviewed By: spmex Differential Revision: D76596897 fbshipit-source-id: 865a112e0b0b70ee7f3ff35dcb8a9b1631bc538a
1 parent fbfbcff commit 65b82f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ else
126126
fi
127127
fi
128128

129-
conda create -y -n "${CONDA_ENV}" python="${MATRIX_PYTHON_VERSION}"
129+
if [[ ${MATRIX_PYTHON_VERSION} = '3.13t' ]]; then
130+
# use conda-forge to install python3.13t
131+
conda create -y -n "${CONDA_ENV}" python="3.13" python-freethreading -c conda-forge
132+
conda run -n "${CONDA_ENV}" python -c "import sys; print(f'python GIL enabled: {sys._is_gil_enabled()}')"
133+
else
134+
conda create -y -n "${CONDA_ENV}" python="${MATRIX_PYTHON_VERSION}"
135+
fi
136+
130137

131138
conda run -n "${CONDA_ENV}" python --version
132139

0 commit comments

Comments
 (0)