Skip to content

Commit a46c95f

Browse files
committed
python update
1 parent 327c606 commit a46c95f

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

scripts/Dockerfile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,24 @@ ENV PATH "/usr/local/cargo/bin:$PATH"
2525

2626
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
2727
rustup component add rust-src && \
28-
chmod 777 /usr/local/cargo
28+
chmod -R 777 /usr/local/cargo
29+
30+
# PyPy 3.10
31+
RUN if [ $(uname -m) = aarch64 ] ; then arch=aarch64 ; else arch=linux64 ; fi && \
32+
curl -sL https://downloads.python.org/pypy/pypy3.10-v7.3.15-$arch.tar.bz2 | tar -C /opt -xj && \
33+
/opt/pypy3.10-*/bin/pypy3 -mensurepip
2934

30-
# PyPy
31-
RUN curl -sL https://downloads.python.org/pypy/pypy3.10-v7.3.15-aarch64.tar.bz2 | tar -C /opt -xj && \
32-
/opt/pypy3.10-v7.3.15-aarch64/bin/pypy3 -mensurepip
3335

3436
# Python 3.10 → 3.13
3537
COPY allpython.sh /
3638
RUN /allpython.sh
3739

3840
# Virtual Environments
39-
RUN /opt/python/Python-3.10.13/bin/python3.10 -mvenv /venv/py3.10
40-
RUN /opt/python/Python-3.11.7/bin/python3.11 -mvenv /venv/py3.11
41-
RUN /opt/python/Python-3.12.1/bin/python3.12 -mvenv /venv/py3.12
42-
RUN /opt/python/Python-3.13.0a3/bin/python3.13 -mvenv /venv/py3.13
43-
RUN /opt/pypy3.10-v7.3.15-aarch64/bin/pypy3.10 -mvenv /venv/pypy3.10
41+
RUN /opt/python/Python-3.10.*/bin/python3.10 -mvenv /venv/py3.10
42+
RUN /opt/python/Python-3.11.*/bin/python3.11 -mvenv /venv/py3.11
43+
RUN /opt/python/Python-3.12.*/bin/python3.12 -mvenv /venv/py3.12
44+
RUN /opt/python/Python-3.13.*/bin/python3.13 -mvenv /venv/py3.13
45+
RUN /opt/pypy3.10-*/bin/pypy3.10 -mvenv /venv/pypy3.10
4446
RUN python3 -mvenv /venv/python
4547

4648
# User environment

scripts/allpython.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ i()
3232
a()
3333
{
3434
i 3.10.13
35-
i 3.11.7
36-
i 3.12.1
37-
i 3.13.0a3
35+
i 3.11.8
36+
i 3.12.2
37+
i 3.13.0a4
3838
}
3939

4040
if [ ${1-} ]; then

0 commit comments

Comments
 (0)