Skip to content

Commit 8459803

Browse files
committed
Also split on hyphens in build python script
This is needed as dev builds such as 3.13-dev use the suffix -dev, rather than a patch version.
1 parent 1df5812 commit 8459803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ py_version="${1}"
77
# Install Python interpreter under e.g. /lang/python/3.11/ (no patch version).
88
"${PYENV_ROOT}/plugins/python-build/bin/python-build" \
99
"${py_version}" \
10-
"/lang/python/${py_version%.*}"
11-
"/lang/python/${py_version%.*}/bin/python" -m pip install -U pip
10+
"/lang/python/${py_version%[-.]*}"
11+
"/lang/python/${py_version%[-.]*}/bin/python" -m pip install -U pip
1212

1313
# Clean up some unnecessary files to reduce image size bloat.
1414
find /lang/python/ -depth \

0 commit comments

Comments
 (0)