This is an automated email from the ASF dual-hosted git repository.
gaogaotiantian 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 c5763445224b [SPARK-57976][4.0][INFRA] Fix URL of get-pip.py in
dev/infra/Dockerfile for Python 3.9
c5763445224b is described below
commit c5763445224b249acb25843be5117d077d8eddc8
Author: Tian Gao <[email protected]>
AuthorDate: Mon Jul 6 17:11:28 2026 -0700
[SPARK-57976][4.0][INFRA] Fix URL of get-pip.py in dev/infra/Dockerfile for
Python 3.9
### What changes were proposed in this pull request?
This PR backports
[SPARK-56812](https://issues.apache.org/jira/browse/SPARK-56812) (#55788) to
branch-4.0. It fixes the URL of `get-pip.py` in `dev/infra/Dockerfile` for
Python 3.9.
### Why are the changes needed?
Currently `docker build dev/infra` fails on branch-4.0 with the following
error.
```
=> ERROR [15/32] RUN curl -sS https://bootstrap.pypa.io/get-pip.py |
python3.9 0.6s
------
> [15/32] RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9:
0.588 ERROR: This script does not work on Python 3.9. The minimum supported
Python version is 3.10. Please use https://bootstrap.pypa.io/pip/3.9/get-pip.py
instead.
------
```
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Confirmed `docker build dev/infra` works.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #57054 from gaogaotiantian/backport-SPARK-56812-branch-4.0.
Lead-authored-by: Tian Gao <[email protected]>
Co-authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Tian Gao <[email protected]>
---
dev/infra/Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/infra/Dockerfile b/dev/infra/Dockerfile
index 7ea422998d28..9461a2919afb 100644
--- a/dev/infra/Dockerfile
+++ b/dev/infra/Dockerfile
@@ -115,7 +115,7 @@ 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 --ignore-installed blinker>=1.6.2 # mlflow needs
this
RUN python3.9 -m pip install --force $BASIC_PIP_PKGS unittest-xml-reporting
$CONNECT_PIP_PKGS && \
python3.9 -m pip install torch torchvision --index-url
https://download.pytorch.org/whl/cpu && \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]