Skip to content

Commit

Permalink
HADOOP-17496. Install a supported version of pip (#2653)
Browse files Browse the repository at this point in the history
pip version 21 ended support for python 2.7. Thus we need to
install a version of pip that supports python 2.7.

Signed-off-by: Akira Ajisaka <[email protected]>
  • Loading branch information
GauthamBanasandra authored Jan 26, 2021
1 parent e40f99f commit a9ff726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev-support/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ RUN mkdir -p /opt/boost-library \
####
# hadolint ignore=DL3003
RUN mkdir -p /opt/pip \
&& curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py \
&& curl -L https://bootstrap.pypa.io/2.7/get-pip.py > get-pip.py \
&& mv get-pip.py /opt/pip \
&& cd /opt/pip \
&& python2.7 get-pip.py \
&& python2.7 get-pip.py "pip < 21.0" \
&& cd /root \
&& rm -rf /opt/pip

Expand Down
4 changes: 2 additions & 2 deletions dev-support/docker/Dockerfile_aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ RUN mkdir -p /opt/boost-library \
####
# hadolint ignore=DL3003
RUN mkdir -p /opt/pip \
&& curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py \
&& curl -L https://bootstrap.pypa.io/2.7/get-pip.py > get-pip.py \
&& mv get-pip.py /opt/pip \
&& cd /opt/pip \
&& python2.7 get-pip.py \
&& python2.7 get-pip.py "pip < 21.0" \
&& cd /root \
&& rm -rf /opt/pip

Expand Down

0 comments on commit a9ff726

Please sign in to comment.