Skip to content

Commit 23f7b12

Browse files
committed
ppa:deadsnakes/ppa
1 parent 06b3666 commit 23f7b12

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cpu/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN \
2121
# add sources for older pythons
2222
apt-get update -q --fix-missing && \
2323
apt-get install -y --no-install-recommends software-properties-common && \
24-
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7)$ ]]; then \
24+
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7|3.12)$ ]]; then \
2525
add-apt-repository ppa:deadsnakes/ppa ; \
2626
fi && \
2727
apt-add-repository universe && \
@@ -41,7 +41,7 @@ RUN \
4141

4242
# install python dependencies
4343
# sysctl -w net.ipv4.ip_forward=1 ; \
44-
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" || "$PYTHON_VERSION" == "3.7" ]]; then \
44+
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" || "$PYTHON_VERSION" == "3.7" || "$PYTHON_VERSION" == "3.12" ]]; then \
4545
PIP_URL="https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py" ; \
4646
else \
4747
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils ; \

gpu/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN \
2727
# add sources for older pythons
2828
apt-get update -qq --fix-missing && \
2929
apt-get install -y --no-install-recommends software-properties-common && \
30-
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7)$ ]]; then \
30+
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7|3.12)$ ]]; then \
3131
add-apt-repository ppa:deadsnakes/ppa ; \
3232
fi && \
3333
apt-add-repository universe && \
@@ -47,7 +47,7 @@ RUN \
4747

4848
# install python dependencies
4949
# sysctl -w net.ipv4.ip_forward=1 ; \
50-
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" || "$PYTHON_VERSION" == "3.7" ]]; then \
50+
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" || "$PYTHON_VERSION" == "3.7" || "$PYTHON_VERSION" == "3.12" ]]; then \
5151
PIP_URL="https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py" ; \
5252
else \
5353
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils ; \

0 commit comments

Comments
 (0)