You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2021/01/26 14:07:10 UTC

[hadoop] branch trunk updated: HADOOP-17496. Install a supported version of pip (#2653)

This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new a9ff726  HADOOP-17496. Install a supported version of pip (#2653)
a9ff726 is described below

commit a9ff726e42b512183e27797380a8947dae601864
Author: Gautham B A <ga...@gmail.com>
AuthorDate: Tue Jan 26 19:36:38 2021 +0530

    HADOOP-17496. Install a supported version of pip (#2653)
    
    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 <aa...@apache.org>
---
 dev-support/docker/Dockerfile         | 4 ++--
 dev-support/docker/Dockerfile_aarch64 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile
index 60873f0..4d9413b 100644
--- a/dev-support/docker/Dockerfile
+++ b/dev-support/docker/Dockerfile
@@ -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
 
diff --git a/dev-support/docker/Dockerfile_aarch64 b/dev-support/docker/Dockerfile_aarch64
index 25e9526..cfcfdce 100644
--- a/dev-support/docker/Dockerfile_aarch64
+++ b/dev-support/docker/Dockerfile_aarch64
@@ -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
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org