diff options
author | 2025-10-11 02:34:06 +0100 | |
---|---|---|
committer | 2025-10-13 01:37:47 +0100 | |
commit | 0c64b8e9cf1d178b26dd6cd853154b18570cc3e0 (patch) | |
tree | dccfeb0b10891dfc9918b660135acabd3da37116 | |
parent | Update build_python.sh to build JIT versions of Python if requested (diff) |
Add new build steps for 3.14.0 with JIT
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -27,6 +27,9 @@ RUN apt-get -y update \ && apt-get install -y --no-install-recommends \ libxmlsec1-dev \ tk-dev \ + lsb-release \ + software-properties-common \ + gnupg \ && rm -rf /var/lib/apt/lists/* RUN git clone -b v2.6.9 --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT @@ -43,6 +46,16 @@ RUN /build_python.sh 3.14.0 FROM builder-py-base AS builder-py-3_14t RUN /build_python.sh 3.14.0t # ------------------------------------------------------------------------------ +FROM builder-py-base AS builder-py-3_14j + +# Following guidance from https://github.com/python/cpython/blob/main/Tools/jit/README.md +RUN curl -o /tmp/llvm.sh https://apt.llvm.org/llvm.sh \ + && chmod +x /tmp/llvm.sh \ + && /tmp/llvm.sh 19 \ + && rm /tmp/llvm.sh + +RUN /build_python.sh 3.14.0j +# ------------------------------------------------------------------------------ FROM python:3.13-slim-bookworm AS base ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \ @@ -60,6 +73,7 @@ COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/ COPY --link --from=builder-py-3_13 /snekbin/ /snekbin/ COPY --link --from=builder-py-3_14 /snekbin/ /snekbin/ COPY --link --from=builder-py-3_14t /snekbin/ /snekbin/ +COPY --link --from=builder-py-3_14j /snekbin/ /snekbin/ RUN chmod +x /usr/sbin/nsjail \ && ln -s /snekbin/python/3.14/ /snekbin/python/default |