You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2026/05/07 07:14:12 UTC

(spark) branch branch-4.0 updated: [SPARK-56759][INFRA][4.0] Update pip installation command for Python 3.9

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

HyukjinKwon pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 8caf0810785f [SPARK-56759][INFRA][4.0] Update pip installation command for Python 3.9
8caf0810785f is described below

commit 8caf0810785f128f184f3bb83922e739517c81ed
Author: Tian Gao <ga...@hotmail.com>
AuthorDate: Thu May 7 16:13:57 2026 +0900

    [SPARK-56759][INFRA][4.0] Update pip installation command for Python 3.9
    
    ### What changes were proposed in this pull request?
    
    Use a 3.9 specific `get-pip` command for docker file.
    
    ### Why are the changes needed?
    
    3.9 is EOL so the main `get-pip` file will report an error.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    CI should work.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #55722 from gaogaotiantian/patch-1.
    
    Authored-by: Tian Gao <ga...@hotmail.com>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 dev/spark-test-image/docs/Dockerfile | 2 +-
 dev/spark-test-image/lint/Dockerfile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/spark-test-image/docs/Dockerfile b/dev/spark-test-image/docs/Dockerfile
index 4f78ddba6ac5..6735795adef4 100644
--- a/dev/spark-test-image/docs/Dockerfile
+++ b/dev/spark-test-image/docs/Dockerfile
@@ -81,7 +81,7 @@ ENV R_LIBS_SITE="/usr/local/lib/R/site-library:${R_LIBS_SITE}:/usr/lib/R/library
 RUN add-apt-repository ppa:deadsnakes/ppa
 RUN apt-get update && apt-get install -y python3.9 python3.9-distutils \
     && rm -rf /var/lib/apt/lists/*
-RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
+RUN curl -sS https://bootstrap.pypa.io/pip/3.9/get-pip.py | python3.9
 
 # Should unpin 'sphinxcontrib-*' after upgrading sphinx>5
 # See 'ipython_genutils' in SPARK-38517
diff --git a/dev/spark-test-image/lint/Dockerfile b/dev/spark-test-image/lint/Dockerfile
index db13412e2eb0..5c2157fc7258 100644
--- a/dev/spark-test-image/lint/Dockerfile
+++ b/dev/spark-test-image/lint/Dockerfile
@@ -72,7 +72,7 @@ ENV R_LIBS_SITE="/usr/local/lib/R/site-library:${R_LIBS_SITE}:/usr/lib/R/library
 RUN add-apt-repository ppa:deadsnakes/ppa
 RUN apt-get update && apt-get install -y python3.9 python3.9-distutils \
     && rm -rf /var/lib/apt/lists/*
-RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
+RUN curl -sS https://bootstrap.pypa.io/pip/3.9/get-pip.py | python3.9
 
 RUN python3.9 -m pip install \
     'black==23.12.1' \


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