Skip to content

Commit aecc6f4

Browse files
committed
Also install 3.13t
This is a free threaded version of python https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython
1 parent d7f57ee commit aecc6f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ RUN /build_python.sh 3.12.7
4040
FROM builder-py-base as builder-py-3_13
4141
RUN /build_python.sh 3.13.0rc3
4242
# ------------------------------------------------------------------------------
43+
FROM builder-py-base as builder-py-3_13t
44+
# Building with all 3 of the options below causes tests to fail.
45+
# Removing just the first means the image is a bit bigger, but we keep optimisations
46+
# --disable-test-modules --enable-optimizations --with-lto
47+
ENV PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto --with-system-expat --without-ensurepip'
48+
RUN /build_python.sh 3.13.0rc3t
49+
RUN mv /snekbin/python/3.13 /snekbin/python/3.13t
50+
# ------------------------------------------------------------------------------
4351
FROM python:3.12-slim-bookworm as base
4452

4553
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
@@ -56,6 +64,7 @@ RUN apt-get -y update \
5664
COPY --link --from=builder-nsjail /nsjail/nsjail /usr/sbin/
5765
COPY --link --from=builder-py-3_12 /snekbin/ /snekbin/
5866
COPY --link --from=builder-py-3_13 /snekbin/ /snekbin/
67+
COPY --link --from=builder-py-3_13t /snekbin/ /snekbin/
5968

6069
RUN chmod +x /usr/sbin/nsjail \
6170
&& ln -s /snekbin/python/3.12/ /snekbin/python/default

0 commit comments

Comments
 (0)