aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-10-09 22:18:47 +0100
committerGravatar Chris Lovering <[email protected]>2024-10-03 21:24:46 +0100
commit0c9b234011f21ce7bdc993957867610dfec1258f (patch)
treeabd6eb5e1f48331507dc32e30a2c7d99d189512c
parentAllow setting a binary_path when calling /eval (diff)
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.
-rwxr-xr-xscripts/build_python.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build_python.sh b/scripts/build_python.sh
index da937c2..1e6d423 100755
--- a/scripts/build_python.sh
+++ b/scripts/build_python.sh
@@ -7,8 +7,8 @@ py_version="${1}"
# Install Python interpreter under e.g. /lang/python/3.11/ (no patch version).
"${PYENV_ROOT}/plugins/python-build/bin/python-build" \
"${py_version}" \
- "/lang/python/${py_version%.*}"
-"/lang/python/${py_version%.*}/bin/python" -m pip install -U pip
+ "/lang/python/${py_version%[-.]*}"
+"/lang/python/${py_version%[-.]*}/bin/python" -m pip install -U pip
# Clean up some unnecessary files to reduce image size bloat.
find /lang/python/ -depth \