Skip to content

Commit a1863cc

Browse files
committed
Revert "python${PYTHON_VERSION}-pip"
This reverts commit eb07bbf.
1 parent eb07bbf commit a1863cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpu/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ RUN \
3030
python${PYTHON_VERSION} \
3131
python${PYTHON_VERSION}-dev \
3232
$( if [ "${PYTHON_VERSION%%.*}" -eq 3 ] && [ "${PYTHON_VERSION#*.}" -lt 10 ]; then echo "python${PYTHON_VERSION}-distutils"; fi ) \
33-
python${PYTHON_VERSION}-pip \
3433
curl \
3534
wget && \
3635
rm -rf /var/lib/apt/lists/* && \
3736
# Set the default python and install PIP packages
3837
update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \
39-
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
38+
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \
39+
# install python dependencies
40+
PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
41+
curl $PIP_URL | python
4042

4143
ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
4244

0 commit comments

Comments
 (0)