Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN apk update && \
RUN set -e; \
case "${python_version}" in \
3.14) python_patch_version="3.14.7";; \
3.15) python_patch_version="3.15.0rc1";; \
3.15) python_patch_version="3.15.0rc2";; \
esac && \
curl -L -o python.tar.zst \
https://github.com/astral-sh/python-build-standalone/releases/download/${build_date}/cpython-${python_patch_version}+${build_date}-${arch}-unknown-linux-musl-freethreaded+lto-full.tar.zst && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN apk update && \
RUN set -e; \
case "${python_version}" in \
3.14) python_patch_version="3.14.7";; \
3.15) python_patch_version="3.15.0rc1";; \
3.15) python_patch_version="3.15.0rc2";; \
esac && \
curl -L -o python.tar.zst \
https://github.com/astral-sh/python-build-standalone/releases/download/${build_date}/cpython-${python_patch_version}+${build_date}-${arch}-unknown-linux-musl-freethreaded+lto-full.tar.zst && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ FROM ${base}
ARG python=3.14

# PYTHON_RELEASE is the python.org ftp directory, which for a pre-release is the
# final release it leads to, e.g. 3.15.0/python-3.15.0rc1-amd64.exe
# final release it leads to, e.g. 3.15.0/python-3.15.0rc2-amd64.exe
# hadolint ignore=SC1072
RUN (if "%python%"=="3.14" setx PYTHON_VERSION "3.14.7" && setx PYTHON_RELEASE "3.14.7") & \
(if "%python%"=="3.15" setx PYTHON_VERSION "3.15.0rc1" && setx PYTHON_RELEASE "3.15.0")
(if "%python%"=="3.15" setx PYTHON_VERSION "3.15.0rc2" && setx PYTHON_RELEASE "3.15.0")

SHELL ["powershell", "-NoProfile", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN $version = $env:PYTHON_VERSION; \
Expand Down
6 changes: 3 additions & 3 deletions ci/scripts/install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ versions=([3.11]=3.11.9
[3.13]=3.13.14
[3.14]=3.14.7
[3.14t]=3.14.7
[3.15]=3.15.0rc1
[3.15t]=3.15.0rc1
[3.15]=3.15.0rc2
[3.15t]=3.15.0rc2
)

if [ "$#" -ne 2 ]; then
Expand All @@ -50,7 +50,7 @@ if [ "$platform" = "macOS" ]; then
echo "Downloading Python installer..."

# Match python.org directory by truncating any pre-release suffix:
# 3.15.0rc1 is https://www.python.org/ftp/python/3.15.0/python-3.15.0rc1-macos11.pkg
# 3.15.0rc2 is https://www.python.org/ftp/python/3.15.0/python-3.15.0rc2-macos11.pkg
release_version="${full_version%%[abrc]*}"
fname="python-${full_version}-macos11.pkg"
wget "https://www.python.org/ftp/python/${release_version}/${fname}"
Expand Down
Loading