8000 [CD] Add python-3.14.0b3 to docker image · pytorch/pytorch@bde2d89 · GitHub
[go: up one dir, main page]

Skip to content

Commit bde2d89

Browse files
committed
[CD] Add python-3.14.0b3 to docker image
ghstack-source-id: 4e7d545 Pull Request resolved: #156889
1 parent 3dd872e commit bde2d89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.ci/docker/common/install_cpython.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PYTHON_DOWNLOAD_GITHUB_BRANCH=https://github.com/python/cpython/archive/refs/hea
77
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
88

99
# Python versions to be installed in /opt/$VERSION_NO
10-
CPYTHON_VERSIONS=${CPYTHON_VERSIONS:-"3.9.0 3.10.1 3.11.0 3.12.0 3.13.0 3.13.0t"}
10+
CPYTHON_VERSIONS=${CPYTHON_VERSIONS:-"3.9.0 3.10.1 3.11.0 3.12.0 3.13.0 3.13.0t 3.14.0"}
1111

1212
function check_var {
1313
if [ -z "$1" ]; then
@@ -90,6 +90,12 @@ function build_cpython {
9090
check_var $PYTHON_DOWNLOAD_GITHUB_BRANCH
9191
wget $PYTHON_DOWNLOAD_GITHUB_BRANCH/$PY_VER_SHORT.tar.gz -O Python-$py_ver.tgz
9292
do_cpython_build $py_ver cpython-$PY_VER_SHORT
93+
elif [ "$py_ver" = "3.14.0" ]; then
94+
PY_VER_SHORT="3.14"
95+
check_var $PYTHON_DOWNLOAD_GITHUB_BRANCH
96+
# Only beta3 available right now
97+
wget $PYTHON_DOWNLOAD_GITHUB_BRANCH/$PY_VER_SHORT.tar.gz -O Python-${py_ver}b3.tgz
98+
do_cpython_build $py_ver cpython-$PY_VER_SHORT
9399
else
94100
wget -q $PYTHON_DOWNLOAD_URL/$py_ver_folder/Python-$py_ver.tgz
95101
do_cpython_build $py_ver Python-$py_ver

0 commit comments

Comments
 (0)
0