Skip to content

Commit 9d0cf3d

Browse files
committed
Apply template to python:2.7 and python:3.6 which don't currently get the templates applied directly
1 parent 3f38677 commit 9d0cf3d

File tree

7 files changed

+132
-70
lines changed

7 files changed

+132
-70
lines changed

2.7/Dockerfile

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ ENV PATH /usr/local/bin:$PATH
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10-
# gpg: key 18ADD4FF: public key "Benjamin Peterson <benjamin@python.org>" imported
11-
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
10+
# runtime dependencies
11+
RUN apt-get update && apt-get install -y --no-install-recommends \
12+
tcl \
13+
tk \
14+
&& rm -rf /var/lib/apt/lists/*
1215

16+
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
1317
ENV PYTHON_VERSION 2.7.12
1418

1519
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -20,13 +24,10 @@ RUN set -ex \
2024
tcl-dev \
2125
tk-dev \
2226
' \
23-
&& runDeps=' \
24-
tcl \
25-
tk \
26-
' \
27-
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
28-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
29-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
27+
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
28+
\
29+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
30+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
3031
&& export GNUPGHOME="$(mktemp -d)" \
3132
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
3233
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
@@ -42,9 +43,13 @@ RUN set -ex \
4243
&& make -j$(nproc) \
4344
&& make install \
4445
&& ldconfig \
45-
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
46-
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
47-
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
46+
\
47+
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
48+
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
49+
&& rm /tmp/get-pip.py \
50+
&& pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
51+
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
52+
\
4853
&& find /usr/local -depth \
4954
\( \
5055
\( -type d -a -name test -o -name tests \) \

2.7/alpine/Dockerfile

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM alpine:3.4
22

3+
# ensure local python is used over alpine python
4+
ENV PATH /usr/local/bin:$PATH
5+
36
# http://bugs.python.org/issue19846
47
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
58
ENV LANG C.UTF-8
@@ -8,18 +11,21 @@ ENV LANG C.UTF-8
811
# the other runtime dependencies for Python are installed later
912
RUN apk add --no-cache ca-certificates
1013

11-
# gpg: key 18ADD4FF: public key "Benjamin Peterson <benjamin@python.org>" imported
1214
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
13-
1415
ENV PYTHON_VERSION 2.7.12
1516

1617
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
1718
ENV PYTHON_PIP_VERSION 8.1.2
1819

1920
RUN set -ex \
20-
&& apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
21-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
22-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
21+
&& apk add --no-cache --virtual .fetch-deps \
22+
gnupg \
23+
openssl \
24+
tar \
25+
xz \
26+
\
27+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
28+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
2329
&& export GNUPGHOME="$(mktemp -d)" \
2430
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
2531
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
@@ -35,6 +41,7 @@ RUN set -ex \
3541
linux-headers \
3642
make \
3743
ncurses-dev \
44+
openssl \
3845
openssl-dev \
3946
pax-utils \
4047
readline-dev \
@@ -43,15 +50,22 @@ RUN set -ex \
4350
tk \
4451
tk-dev \
4552
zlib-dev \
53+
# add build deps before removing fetch deps in case there's overlap
54+
&& apk del .fetch-deps \
55+
\
4656
&& cd /usr/src/python \
4757
&& ./configure \
4858
--enable-shared \
4959
--enable-unicode=ucs4 \
5060
&& make -j$(getconf _NPROCESSORS_ONLN) \
5161
&& make install \
52-
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
53-
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
54-
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
62+
\
63+
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
64+
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
65+
&& rm /tmp/get-pip.py \
66+
&& pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
67+
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
68+
\
5569
&& find /usr/local -depth \
5670
\( \
5771
\( -type d -a -name test -o -name tests \) \
@@ -66,7 +80,7 @@ RUN set -ex \
6680
| sort -u \
6781
)" \
6882
&& apk add --virtual .python-rundeps $runDeps \
69-
&& apk del .build-deps .fetch-deps \
83+
&& apk del .build-deps \
7084
&& rm -rf /usr/src/python ~/.cache
7185

7286
CMD ["python2"]

2.7/slim/Dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@ ENV PATH /usr/local/bin:$PATH
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10+
# runtime dependencies
1011
RUN apt-get update && apt-get install -y --no-install-recommends \
1112
ca-certificates \
1213
libsqlite3-0 \
1314
libssl1.0.0 \
1415
&& rm -rf /var/lib/apt/lists/*
1516

16-
# gpg: key 18ADD4FF: public key "Benjamin Peterson <benjamin@python.org>" imported
1717
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
18-
1918
ENV PYTHON_VERSION 2.7.12
2019

2120
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
2221
ENV PYTHON_PIP_VERSION 8.1.2
2322

2423
RUN set -ex \
2524
&& buildDeps=' \
26-
curl \
2725
gcc \
2826
libbz2-dev \
2927
libc6-dev \
@@ -34,12 +32,14 @@ RUN set -ex \
3432
make \
3533
tcl-dev \
3634
tk-dev \
35+
wget \
3736
xz-utils \
3837
zlib1g-dev \
3938
' \
4039
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
41-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
42-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
40+
\
41+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
42+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
4343
&& export GNUPGHOME="$(mktemp -d)" \
4444
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
4545
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
@@ -55,9 +55,13 @@ RUN set -ex \
5555
&& make -j$(nproc) \
5656
&& make install \
5757
&& ldconfig \
58-
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
59-
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
60-
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
58+
\
59+
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
60+
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
61+
&& rm /tmp/get-pip.py \
62+
&& pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
63+
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
64+
\
6165
&& find /usr/local -depth \
6266
\( \
6367
\( -type d -a -name test -o -name tests \) \

2.7/wheezy/Dockerfile

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ ENV PATH /usr/local/bin:$PATH
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10-
# gpg: key 18ADD4FF: public key "Benjamin Peterson <benjamin@python.org>" imported
11-
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
10+
# runtime dependencies
11+
RUN apt-get update && apt-get install -y --no-install-recommends \
12+
tcl \
13+
tk \
14+
&& rm -rf /var/lib/apt/lists/*
1215

16+
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
1317
ENV PYTHON_VERSION 2.7.12
1418

1519
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -20,13 +24,10 @@ RUN set -ex \
2024
tcl-dev \
2125
tk-dev \
2226
' \
23-
&& runDeps=' \
24-
tcl \
25-
tk \
26-
' \
27-
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
28-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
29-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
27+
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
28+
\
29+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
30+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
3031
&& export GNUPGHOME="$(mktemp -d)" \
3132
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
3233
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
@@ -42,9 +43,13 @@ RUN set -ex \
4243
&& make -j$(nproc) \
4344
&& make install \
4445
&& ldconfig \
45-
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
46-
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
47-
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
46+
\
47+
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
48+
&& python2 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
49+
&& rm /tmp/get-pip.py \
50+
&& pip install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
51+
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
52+
\
4853
&& find /usr/local -depth \
4954
\( \
5055
\( -type d -a -name test -o -name tests \) \

3.6/Dockerfile

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ ENV PATH /usr/local/bin:$PATH
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10-
# gpg: key AA65421D: public key "Ned Deily (Python release signing key) <nad@acm.org>" imported
11-
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
10+
# runtime dependencies
11+
RUN apt-get update && apt-get install -y --no-install-recommends \
12+
tcl \
13+
tk \
14+
&& rm -rf /var/lib/apt/lists/*
1215

16+
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
1317
ENV PYTHON_VERSION 3.6.0a3
1418

1519
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -20,13 +24,10 @@ RUN set -ex \
2024
tcl-dev \
2125
tk-dev \
2226
' \
23-
&& runDeps=' \
24-
tcl \
25-
tk \
26-
' \
27-
&& apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
28-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
29-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
27+
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
28+
\
29+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
30+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
3031
&& export GNUPGHOME="$(mktemp -d)" \
3132
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
3233
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
@@ -42,8 +43,16 @@ RUN set -ex \
4243
&& make -j$(nproc) \
4344
&& make install \
4445
&& ldconfig \
45-
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
46-
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
46+
\
47+
# explicit path to "pip3" to ensure Debian "pip3" cannot interfere
48+
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
49+
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
50+
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
51+
&& rm /tmp/get-pip.py \
52+
; fi \
53+
&& pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
54+
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
55+
\
4756
&& find /usr/local -depth \
4857
\( \
4958
\( -type d -a -name test -o -name tests \) \
@@ -55,7 +64,7 @@ RUN set -ex \
5564

5665
# make some useful symlinks that are expected to exist
5766
RUN cd /usr/local/bin \
58-
&& ln -s easy_install-3.6 easy_install \
67+
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
5968
&& ln -s idle3 idle \
6069
&& ln -s pydoc3 pydoc \
6170
&& ln -s python3 python \

3.6/alpine/Dockerfile

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM alpine:3.4
22

3+
# ensure local python is used over alpine python
4+
ENV PATH /usr/local/bin:$PATH
5+
36
# http://bugs.python.org/issue19846
47
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
58
ENV LANG C.UTF-8
@@ -8,26 +11,28 @@ ENV LANG C.UTF-8
811
# the other runtime dependencies for Python are installed later
912
RUN apk add --no-cache ca-certificates
1013

11-
# gpg: key AA65421D: public key "Ned Deily (Python release signing key) <nad@acm.org>" imported
1214
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
13-
1415
ENV PYTHON_VERSION 3.6.0a3
1516

1617
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
1718
ENV PYTHON_PIP_VERSION 8.1.2
1819

1920
RUN set -ex \
20-
&& apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
21-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
22-
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
21+
&& apk add --no-cache --virtual .fetch-deps \
22+
gnupg \
23+
openssl \
24+
tar \
25+
xz \
26+
\
27+
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
28+
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
2329
&& export GNUPGHOME="$(mktemp -d)" \
2430
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
2531
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
2632
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
2733
&& mkdir -p /usr/src/python \
2834
&& tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
2935
&& rm python.tar.xz \
30-
&& apk del .fetch-deps \
3136
\
3237
&& apk add --no-cache --virtual .build-deps \
3338
bzip2-dev \
@@ -36,6 +41,7 @@ RUN set -ex \
3641
linux-headers \
3742
make \
3843
ncurses-dev \
44+
openssl \
3945
openssl-dev \
4046
pax-utils \
4147
readline-dev \
@@ -45,14 +51,25 @@ RUN set -ex \
4551
tk-dev \
4652
xz-dev \
4753
zlib-dev \
54+
# add build deps before removing fetch deps in case there's overlap
55+
&& apk del .fetch-deps \
56+
\
4857
&& cd /usr/src/python \
4958
&& ./configure \
5059
--enable-loadable-sqlite-extensions \
5160
--enable-shared \
5261
&& make -j$(getconf _NPROCESSORS_ONLN) \
5362
&& make install \
54-
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
55-
&& [ "$(pip list | awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
63+
\
64+
# explicit path to "pip3" to ensure Debian "pip3" cannot interfere
65+
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
66+
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
67+
&& python3 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
68+
&& rm /tmp/get-pip.py \
69+
; fi \
70+
&& pip3 install --no-cache-dir --upgrade "pip==$PYTHON_PIP_VERSION" \
71+
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
72+
\
5673
&& find /usr/local -depth \
5774
\( \
5875
\( -type d -a -name test -o -name tests \) \
@@ -72,7 +89,7 @@ RUN set -ex \
7289

7390
# make some useful symlinks that are expected to exist
7491
RUN cd /usr/local/bin \
75-
&& ln -s easy_install-3.6 easy_install \
92+
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
7693
&& ln -s idle3 idle \
7794
&& ln -s pydoc3 pydoc \
7895
&& ln -s python3 python \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy