From 08c77ac4d5dd1b2f1e3019f62aa0772d0a69ba84 Mon Sep 17 00:00:00 2001 From: Kousuke Saruta Date: Tue, 12 May 2026 12:40:00 +0900 Subject: [PATCH] [SPARK-57976][INFRA][4.0] 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 (#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 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. (cherry picked from commit 3eec6b6fb4d4779ea98418755131138f315854aa) --- dev/infra/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/infra/Dockerfile b/dev/infra/Dockerfile index 7ea422998d28d..9461a2919afb1 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 && \