@@ -61,19 +61,19 @@ RUN apt update && \
6161 make tk-dev unzip wget xz-utils zlib1g-dev
6262
6363
64- # Install Python 3.12 .x
64+ # Install Python 3.13 .x
6565# https://www.python.org/downloads/
6666RUN cd /tmp && \
67- curl --remote-name https://www.python.org/ftp/python/3.12.8 /Python-3.12.8 .tgz && \
68- tar xzf Python-3.12.8 .tgz && \
69- rm --force Python-3.12.8 .tgz && \
70- cd Python-3.12.8 && \
67+ curl --remote-name https://www.python.org/ftp/python/3.13.1 /Python-3.13.1 .tgz && \
68+ tar xzf Python-3.13.1 .tgz && \
69+ rm --force Python-3.13.1 .tgz && \
70+ cd Python-3.13.1 && \
7171 CFLAGS="-Os" ./configure --disable-static --enable-optimizations --enable-shared --with-lto --without-tests && \
7272 ./configure && \
7373 make && \
7474 make install && \
7575 cd .. && \
76- rm --force --recursive Python-3.12.8 && \
76+ rm --force --recursive Python-3.13.1 && \
7777 ln --relative --symbolic /usr/local/bin/pip3 /usr/local/bin/pip && \
7878 ln --relative --symbolic /usr/local/bin/python3 /usr/local/bin/python && \
7979 pip3 install --no-cache-dir --upgrade pip
@@ -243,6 +243,17 @@ RUN apt update && \
243243 groupadd docker
244244
245245
246+ # Install Rust
247+ RUN curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
248+ ENV PATH="/root/.cargo/bin:${PATH}"
249+
250+
251+ # Temporarily install msgspec from GitHub until it' s officially compatible with Python 3.13
252+ # https://github.com/jcrist/msgspec/issues/698
253+ # https://github.com/jcrist/msgspec/issues/777
254+ RUN pip install git+https://github.com/jcrist/msgspec.git@main
255+
256+
246257# Install Python packages
247258RUN pip3 install --no-cache-dir \
248259 autopep8 \
0 commit comments