Skip to content
This repository was archived by the owner on Feb 18, 2019. It is now read-only.

Commit c7a0638

Browse files
committed
python: pin pip version to <19
pip version 19 has a bug[1] which is breaking our builds. Until it's fixed, pin pip to a pre-19 version. [1] pypa/pip#6158
1 parent 4e4b459 commit c7a0638

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ FROM python:$PYTHON_VERSION-alpine
33
# Add our base requirements and install
44
ADD ./requirements/ /tmp/requirements/
55

6-
# Update and upgrade system packages and install common Python modules
6+
# Update and upgrade system packages and install common Python modules.
7+
#
8+
# For the moment we pin pip at being less than 19.0 because of
9+
# https://github.com/pypa/pip/issues/6158.
710
RUN apk --no-cache upgrade && \
811
apk --no-cache add git vim libffi libxml2 libxslt postgresql-client && \
912
apk --no-cache add \
1013
postgresql-dev libffi-dev gcc g++ musl-dev libxml2-dev libxslt-dev libstdc++ && \
11-
pip install --no-cache-dir --upgrade pip && \
14+
pip install --no-cache-dir --upgrade 'pip<19.0' && \
1215
pip install --no-cache-dir --upgrade --no-cache -r /tmp/requirements/$REQUIREMENTS.txt && \
1316
apk del postgresql-dev libffi-dev gcc g++ musl-dev libxml2-dev libxslt-dev libstdc++
1417

0 commit comments

Comments
 (0)