use python27 specific pip in python dockerfiles

pull/25333/head
Jan Tattermusch 4 years ago
parent 0396cff7ab
commit c4c493e8f4
  1. 2
      templates/tools/dockerfile/apt_get_python_27.include
  2. 2
      templates/tools/dockerfile/python_deps.include

@ -1,3 +1,3 @@
# Install Python 2.7
RUN apt-get update && apt-get install -y python2.7 python-all-dev
RUN curl https://bootstrap.pypa.io/get-pip.py | python2.7
RUN curl https://bootstrap.pypa.io/2.7/get-pip.py | python2.7

@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y ${'\\'}
python-setuptools
# Install Python packages from PyPI
RUN curl https://bootstrap.pypa.io/get-pip.py | python2.7
RUN curl https://bootstrap.pypa.io/2.7/get-pip.py | python2.7
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.15.0 twisted==17.5.0

Loading…
Cancel
Save