Skip to content

Commit fabaa95

Browse files
authored
add python3.13 in build_utils.sh (#75723)
1 parent abb153b commit fabaa95

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tools/dockerfile/build_scripts/build_utils.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ function do_cpython_build {
8383
rm -rf Python-$py_ver
8484
# Some python's install as bin/python3. Make them available as
8585
# bin/python.
86-
if [ -e ${prefix}/bin/python3.8 ]; then
87-
ln -s python3.8 ${prefix}/bin/python
88-
fi
8986
if [ -e ${prefix}/bin/python3.9 ]; then
9087
ln -s python3.9 ${prefix}/bin/python
9188
fi
@@ -98,6 +95,12 @@ function do_cpython_build {
9895
if [ -e ${prefix}/bin/python3.12 ]; then
9996
ln -s python3.12 ${prefix}/bin/python
10097
fi
98+
if [ -e ${prefix}/bin/python3.13 ]; then
99+
ln -s python3.13 ${prefix}/bin/python
100+
fi
101+
if [ -e ${prefix}/bin/python3.13t ]; then
102+
ln -s python3.13t ${prefix}/bin/python
103+
fi
101104
# NOTE Make libpython shared library visible to python calls below
102105
if [ -e ${prefix}/bin/python3.10 ] || [ -e ${prefix}/bin/python3.11 ] || [ -e ${prefix}/bin/python3.12 ]; then
103106
LD_LIBRARY_PATH="/usr/local/ssl/lib:${prefix}/lib" ${prefix}/bin/python -m pip config set global.trusted-host mirrors.aliyun.com

0 commit comments

Comments
 (0)