This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun 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 b6ab37d3c403 [SPARK-57270][4.0][INFRA] Fix `spark-rm` Dockerfile to
use Python 3.9 specific get-pip.py
b6ab37d3c403 is described below
commit b6ab37d3c4037abdfacaa8935c4d42bbe39531b5
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Jun 4 14:04:32 2026 -0700
[SPARK-57270][4.0][INFRA] Fix `spark-rm` Dockerfile to use Python 3.9
specific get-pip.py
### What changes were proposed in this pull request?
This PR uses the Python 3.9 specific `get-pip.py` URL in
`dev/create-release/spark-rm/Dockerfile`.
```diff
-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 && \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
```
### Why are the changes needed?
The `Release Apache Spark` workflow for `branch-4.0` fails because the
canonical `get-pip.py` dropped Python 3.9 support:
- https://github.com/dongjoon-hyun/spark/actions/runs/26971633560
```
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.
```
The version-pinned URL is the documented replacement like other CIs.
- #55722
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual test because this is a release script.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.8)
Closes #56335 from dongjoon-hyun/SPARK-57270.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
dev/create-release/spark-rm/Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/create-release/spark-rm/Dockerfile
b/dev/create-release/spark-rm/Dockerfile
index 5803a902cd06..a537f81a4c06 100644
--- a/dev/create-release/spark-rm/Dockerfile
+++ b/dev/create-release/spark-rm/Dockerfile
@@ -41,7 +41,7 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
&& rm -rf /var/lib/apt/lists/*
# Install pip for both Python versions
-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 && \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
# Basic Python packages for Spark 4.0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]