Skip to content

Commit c94adf7

Browse files
committed
ppa:deadsnakes/ppa
1 parent 0c26486 commit c94adf7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cpu/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ RUN \
2323
software-properties-common \
2424
dirmngr \
2525
gnupg && \
26-
add-apt-repository ppa:deadsnakes/ppa && \
26+
if [[ "${PYTHON_VERSION%%.*}" -eq 3 && "${PYTHON_VERSION#*.}" -lt 10 ]]; then \
27+
add-apt-repository ppa:deadsnakes/ppa ; \
28+
fi && \
2729
apt-add-repository universe && \
2830
apt-get -y update -qq --fix-missing && \
2931
apt-get -y install --no-install-recommends \

gpu/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ RUN \
2929
software-properties-common \
3030
dirmngr \
3131
gnupg && \
32-
add-apt-repository ppa:deadsnakes/ppa && \
32+
if [[ "${PYTHON_VERSION%%.*}" -eq 3 && "${PYTHON_VERSION#*.}" -lt 10 ]]; then \
33+
add-apt-repository ppa:deadsnakes/ppa ; \
34+
fi && \
3335
apt-add-repository universe && \
3436
apt-get -y update -qq --fix-missing && \
3537
apt-get -y install --no-install-recommends \

0 commit comments

Comments
 (0)