This is an automated email from the ASF dual-hosted git repository.
sarutak pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.2 by this push:
new 49af916d4e41 [SPARK-56812][INFRA] Fix URL of get-pip.py in
dev/infra/Dockerfile for Python 3.9
49af916d4e41 is described below
commit 49af916d4e41bc0bdbb3198e90b6889e28872cf5
Author: Kousuke Saruta <[email protected]>
AuthorDate: Tue May 12 12:40:00 2026 +0900
[SPARK-56812][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 fixes a URL of `get-pip.py` in `dev/infra/Dockerfile` for Python
3.9.
### Why are the changes needed?
Currently `docker build dev/infra` fails with 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.
------
Dockerfile:111
--------------------
109 | python3.9 python3.9-distutils \
110 | && rm -rf /var/lib/apt/lists/*
111 | >>> RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
112 | RUN python3.9 -m pip install --ignore-installed 'blinker>=1.6.2'
# mlflow needs this
113 | RUN python3.9 -m pip install --force $BASIC_PIP_PKGS
unittest-xml-reporting $CONNECT_PIP_PKGS && \
--------------------
```
### 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 #55788 from sarutak/fix-get-pip-url.
Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Kousuke Saruta <[email protected]>
(cherry picked from commit 3eec6b6fb4d4779ea98418755131138f315854aa)
Signed-off-by: Kousuke Saruta <[email protected]>
---
dev/infra/Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/infra/Dockerfile b/dev/infra/Dockerfile
index 1cfc22acc230..b848f8eb754d 100644
--- a/dev/infra/Dockerfile
+++ b/dev/infra/Dockerfile
@@ -108,7 +108,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]