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

Skip to content

Commit 7de7b55

Browse files
committed
[CD] Add python-3.14.0b3 to docker image
ghstack-source-id: 667dae3 Pull Request resolved: #156889
1 parent 4a4d6b3 commit 7de7b55

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.ci/docker/common/install_cpython.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python
66
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
77

88
# Python versions to be installed in /opt/$VERSION_NO
9-
CPYTHON_VERSIONS=${CPYTHON_VERSIONS:-"3.9.0 3.10.1 3.11.0 3.12.0 3.13.0 3.13.0t"}
9+
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 3.14.0t"}
1010

1111
function check_var {
1212
if [ -z "$1" ]; then
@@ -75,12 +75,18 @@ function build_cpython {
7575
local py_ver=$1
7676
check_var $py_ver
7777
local py_suffix=$py_ver
78+
local py_folder=$py_ver
7879

7980
# Special handling for nogil
8081
if [[ "${py_ver}" == *"t" ]]; then
8182
py_suffix=${py_ver::-1}
83+
py_folder=$py_suffix
8284
fi
83-
wget -q $PYTHON_DOWNLOAD_URL/$py_suffix/Python-$py_suffix.tgz -O Python-$py_ver.tgz
85+
# Only b3 is available now
86+
if [ "$py_suffix" == "3.14.0" ]; then
87+
py_suffix="3.14.0b3"
88+
fi
89+
wget -q $PYTHON_DOWNLOAD_URL/$py_folder/Python-$py_suffix.tgz -O Python-$py_ver.tgz
8490
do_cpython_build $py_ver Python-$py_suffix
8591

8692
rm -f Python-$py_ver.tgz

0 commit comments

Comments
 (0)
0