File tree 10 files changed +42
-4
lines changed 10 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E35
12
12
13
13
ENV PYTHON_VERSION 2.7.9
14
14
15
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
16
+ ENV PYTHON_PIP_VERSION 6.1.1
17
+
15
18
RUN set -x \
16
19
&& mkdir -p /usr/src/python \
17
20
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
@@ -25,6 +28,7 @@ RUN set -x \
25
28
&& make install \
26
29
&& ldconfig \
27
30
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
31
+ && pip install --upgrade pip==$PYTHON_PIP_VERSION \
28
32
&& find /usr/local \
29
33
\( -type d -a -name test -o -name tests \) \
30
34
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E35
18
18
19
19
ENV PYTHON_VERSION 2.7.9
20
20
21
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
22
+ ENV PYTHON_PIP_VERSION 6.1.1
23
+
21
24
RUN set -x \
22
25
&& buildDeps='curl gcc libbz2-dev libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
23
26
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -33,6 +36,7 @@ RUN set -x \
33
36
&& make install \
34
37
&& ldconfig \
35
38
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
39
+ && pip install --upgrade pip==$PYTHON_PIP_VERSION \
36
40
&& find /usr/local \
37
41
\( -type d -a -name test -o -name tests \) \
38
42
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E35
12
12
13
13
ENV PYTHON_VERSION 2.7.9
14
14
15
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
16
+ ENV PYTHON_PIP_VERSION 6.1.1
17
+
15
18
RUN set -x \
16
19
&& mkdir -p /usr/src/python \
17
20
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
@@ -25,6 +28,7 @@ RUN set -x \
25
28
&& make install \
26
29
&& ldconfig \
27
30
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
31
+ && pip install --upgrade pip==$PYTHON_PIP_VERSION \
28
32
&& find /usr/local \
29
33
\( -type d -a -name test -o -name tests \) \
30
34
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 26DEA9D4613391EF3E25C
12
12
13
13
ENV PYTHON_VERSION 3.3.6
14
14
15
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
16
+ ENV PYTHON_PIP_VERSION 6.1.1
17
+
15
18
RUN set -x \
16
19
&& mkdir -p /usr/src/python \
17
20
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
@@ -25,6 +28,7 @@ RUN set -x \
25
28
&& make install \
26
29
&& ldconfig \
27
30
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
31
+ && pip install --upgrade pip==$PYTHON_PIP_VERSION \
28
32
&& find /usr/local \
29
33
\( -type d -a -name test -o -name tests \) \
30
34
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 26DEA9D4613391EF3E25C
18
18
19
19
ENV PYTHON_VERSION 3.3.6
20
20
21
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
22
+ ENV PYTHON_PIP_VERSION 6.1.1
23
+
21
24
RUN set -x \
22
25
&& buildDeps='curl gcc libbz2-dev libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
23
26
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -33,6 +36,7 @@ RUN set -x \
33
36
&& make install \
34
37
&& ldconfig \
35
38
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
39
+ && pip install --upgrade pip==$PYTHON_PIP_VERSION \
36
40
&& find /usr/local \
37
41
\( -type d -a -name test -o -name tests \) \
38
42
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 26DEA9D4613391EF3E25C
12
12
13
13
ENV PYTHON_VERSION 3.3.6
14
14
15
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
16
+ ENV PYTHON_PIP_VERSION 6.1.1
17
+
15
18
RUN set -x \
16
19
&& mkdir -p /usr/src/python \
17
20
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
@@ -25,6 +28,7 @@ RUN set -x \
25
28
&& make install \
26
29
&& ldconfig \
27
30
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
31
+ && pip install --upgrade pip==$PYTHON_PIP_VERSION \
28
32
&& find /usr/local \
29
33
\( -type d -a -name test -o -name tests \) \
30
34
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A6
12
12
13
13
ENV PYTHON_VERSION 3.4.3
14
14
15
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
16
+ ENV PYTHON_PIP_VERSION 6.1.1
17
+
15
18
RUN set -x \
16
19
&& mkdir -p /usr/src/python \
17
20
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
@@ -24,6 +27,7 @@ RUN set -x \
24
27
&& make -j$(nproc) \
25
28
&& make install \
26
29
&& ldconfig \
30
+ && pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
27
31
&& find /usr/local \
28
32
\( -type d -a -name test -o -name tests \) \
29
33
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
@@ -34,7 +38,6 @@ RUN set -x \
34
38
RUN cd /usr/local/bin \
35
39
&& ln -s easy_install-3.4 easy_install \
36
40
&& ln -s idle3 idle \
37
- && ln -s pip3 pip \
38
41
&& ln -s pydoc3 pydoc \
39
42
&& ln -s python3 python \
40
43
&& ln -s python-config3 python-config
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A6
18
18
19
19
ENV PYTHON_VERSION 3.4.3
20
20
21
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
22
+ ENV PYTHON_PIP_VERSION 6.1.1
23
+
21
24
RUN set -x \
22
25
&& buildDeps='curl gcc libbz2-dev libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
23
26
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -32,6 +35,7 @@ RUN set -x \
32
35
&& make -j$(nproc) \
33
36
&& make install \
34
37
&& ldconfig \
38
+ && pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
35
39
&& find /usr/local \
36
40
\( -type d -a -name test -o -name tests \) \
37
41
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
@@ -43,7 +47,6 @@ RUN set -x \
43
47
RUN cd /usr/local/bin \
44
48
&& ln -s easy_install-3.4 easy_install \
45
49
&& ln -s idle3 idle \
46
- && ln -s pip3 pip \
47
50
&& ln -s pydoc3 pydoc \
48
51
&& ln -s python3 python \
49
52
&& ln -s python-config3 python-config
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A6
12
12
13
13
ENV PYTHON_VERSION 3.4.3
14
14
15
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
16
+ ENV PYTHON_PIP_VERSION 6.1.1
17
+
15
18
RUN set -x \
16
19
&& mkdir -p /usr/src/python \
17
20
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
@@ -24,6 +27,7 @@ RUN set -x \
24
27
&& make -j$(nproc) \
25
28
&& make install \
26
29
&& ldconfig \
30
+ && pip3 install --upgrade pip==$PYTHON_PIP_VERSION \
27
31
&& find /usr/local \
28
32
\( -type d -a -name test -o -name tests \) \
29
33
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
@@ -34,7 +38,6 @@ RUN set -x \
34
38
RUN cd /usr/local/bin \
35
39
&& ln -s easy_install-3.4 easy_install \
36
40
&& ln -s idle3 idle \
37
- && ln -s pip3 pip \
38
41
&& ln -s pydoc3 pydoc \
39
42
&& ln -s python3 python \
40
43
&& ln -s python-config3 python-config
Original file line number Diff line number Diff line change @@ -9,14 +9,19 @@ if [ ${#versions[@]} -eq 0 ]; then
9
9
fi
10
10
versions=( " ${versions[@]%/ } " )
11
11
12
+ pipVersion=" $( curl -sSL ' https://pypi.python.org/pypi/pip/json' | awk -F ' "' ' $2 == "version" { print $4 }' ) "
13
+
12
14
for version in " ${versions[@]} " ; do
13
15
# <span class="release-number"><a href="/downloads/release/python-278/">Python 2.7.8</a></span>
14
16
# <span class="release-number"><a href="/downloads/release/python-341/">Python 3.4.1</a></span>
15
17
fullVersion=" $( curl -sSL ' https://www.python.org/downloads/' | awk -F ' Python |</a>' ' /<span class="release-number"><a[^>]+>Python ' " $version " ' ./ { print $2 }' | grep -v ' rc' | sort -V | tail -1) "
16
18
# TODO figure out a better want to handle RCs than just filtering them out wholesale
17
19
(
18
20
set -x
19
- sed -ri ' s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /' " $version " /{,slim/,wheezy/}Dockerfile
21
+ sed -ri '
22
+ s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /;
23
+ s/^(ENV PYTHON_PIP_VERSION) .*/\1 ' " $pipVersion " ' /;
24
+ ' " $version " /{,slim/,wheezy/}Dockerfile
20
25
sed -ri ' s/^(FROM python):.*/\1:' " $fullVersion " ' /' " $version /onbuild/Dockerfile"
21
26
)
22
27
done
You can’t perform that action at this time.
0 commit comments