File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ RUN gpg2 --keyserver pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E3571
14
14
15
15
ENV PYTHON_VERSION 2.7.9
16
16
17
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
18
+ ENV PYTHON_PIP_VERSION 7.0.1
19
+
17
20
RUN tce-load -wic \
18
21
bzip2-dev \
19
22
flex \
@@ -86,7 +89,12 @@ RUN tce-load -wic \
86
89
done \
87
90
&& sudo rm -f /usr/bin/file \
88
91
&& sudo /sbin/ldconfig \
89
- && rm -rf /tmp/tce/optional/*
92
+ && rm -rf /tmp/tce/optional/* \
93
+ && curl -SL 'https://bootstrap.pypa.io/get-pip.py' | sudo python2 \
94
+ && sudo pip install --upgrade pip==$PYTHON_PIP_VERSION \
95
+ && sudo find /usr/local \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' + \
96
+ && find /usr/local \( -type d -a -name test -o -name tests \) | sudo xargs rm -rf \
97
+ && sudo rm -rf /usr/src/python
90
98
91
99
# Instructions after here are run with 'root' user
92
100
USER root
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ RUN gpg2 --keyserver pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A61E
14
14
15
15
ENV PYTHON_VERSION 3.4.3
16
16
17
+ # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
18
+ ENV PYTHON_PIP_VERSION 7.0.1
19
+
17
20
RUN tce-load -wic \
18
21
bzip2-dev \
19
22
flex \
@@ -88,15 +91,19 @@ RUN tce-load -wic \
88
91
done \
89
92
&& sudo rm -f /usr/bin/file \
90
93
&& sudo /sbin/ldconfig \
91
- && rm -rf /tmp/tce/optional/*
94
+ && rm -rf /tmp/tce/optional/* \
95
+ && curl -SL 'https://bootstrap.pypa.io/get-pip.py' | sudo python3 \
96
+ && sudo pip install --upgrade pip==$PYTHON_PIP_VERSION \
97
+ && sudo find /usr/local \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' + \
98
+ && find /usr/local \( -type d -a -name test -o -name tests \) | sudo xargs rm -rf \
99
+ && sudo rm -rf /usr/src/python
92
100
93
101
# Instructions after here are run with 'root' user
94
102
USER root
95
103
96
104
RUN cd /usr/local/bin \
97
105
&& ln -s easy_install-3.4 easy_install \
98
106
&& ln -s idel3 idle \
99
- && ln -s pip3 pip \
100
107
&& ln -s pydoc3 pydoc \
101
108
&& ln -s python3 python \
102
109
&& ln -s python3-config python-config
You can’t perform that action at this time.
0 commit comments