Skip to content

Commit 0c64b8e

Browse files
committed
Add new build steps for 3.14.0 with JIT
1 parent 8969cef commit 0c64b8e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ RUN apt-get -y update \
2727
&& apt-get install -y --no-install-recommends \
2828
libxmlsec1-dev \
2929
tk-dev \
30+
lsb-release \
31+
software-properties-common \
32+
gnupg \
3033
&& rm -rf /var/lib/apt/lists/*
3134

3235
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
4346
FROM builder-py-base AS builder-py-3_14t
4447
RUN /build_python.sh 3.14.0t
4548
# ------------------------------------------------------------------------------
49+
FROM builder-py-base AS builder-py-3_14j
50+
51+
# Following guidance from https://github.com/python/cpython/blob/main/Tools/jit/README.md
52+
RUN curl -o /tmp/llvm.sh https://apt.llvm.org/llvm.sh \
53+
&& chmod +x /tmp/llvm.sh \
54+
&& /tmp/llvm.sh 19 \
55+
&& rm /tmp/llvm.sh
56+
57+
RUN /build_python.sh 3.14.0j
58+
# ------------------------------------------------------------------------------
4659
FROM python:3.13-slim-bookworm AS base
4760

4861
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
@@ -60,6 +73,7 @@ COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/
6073
COPY --link --from=builder-py-3_13 /snekbin/ /snekbin/
6174
COPY --link --from=builder-py-3_14 /snekbin/ /snekbin/
6275
COPY --link --from=builder-py-3_14t /snekbin/ /snekbin/
76+
COPY --link --from=builder-py-3_14j /snekbin/ /snekbin/
6377

6478
RUN chmod +x /usr/sbin/nsjail \
6579
&& ln -s /snekbin/python/3.14/ /snekbin/python/default

0 commit comments

Comments
 (0)