From 144e05b250c135ab059ed04f960211dabef73069 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Tue, 6 Jan 2026 19:38:43 +0900 Subject: [PATCH 1/5] GH-48735: [Python] Update setuptools requirement to >=77 in requirements-wheel-build.txt --- python/requirements-wheel-build.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/requirements-wheel-build.txt b/python/requirements-wheel-build.txt index dfcda9ac189..ac6388762b4 100644 --- a/python/requirements-wheel-build.txt +++ b/python/requirements-wheel-build.txt @@ -1,5 +1,5 @@ cython>=3.1 numpy>=2.0.0 setuptools_scm -setuptools>=58 +setuptools>=77 wheel From 6e371d5077b0384515db400bde51a9adc11ab645 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Wed, 7 Jan 2026 08:05:55 +0900 Subject: [PATCH 2/5] Lowerbound the setuptools version --- ci/scripts/install_python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/install_python.sh b/ci/scripts/install_python.sh index c683d2b883f..4e98203b1fa 100755 --- a/ci/scripts/install_python.sh +++ b/ci/scripts/install_python.sh @@ -87,7 +87,7 @@ EOF echo "Installing Pip..." $python -m ensurepip - $python -m pip install -U pip setuptools + $python -m pip install -U pip "setuptools>=77" else echo "Unsupported platform: $platform" exit 1 From 51677cff36a505a1907b9e1d6252a1ef298142d8 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Wed, 7 Jan 2026 08:35:22 +0900 Subject: [PATCH 3/5] force --- ci/scripts/python_wheel_macos_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/scripts/python_wheel_macos_build.sh b/ci/scripts/python_wheel_macos_build.sh index 8d113312927..a7c6bf2ffca 100755 --- a/ci/scripts/python_wheel_macos_build.sh +++ b/ci/scripts/python_wheel_macos_build.sh @@ -58,6 +58,7 @@ fi pip install \ --only-binary=:all: \ --target $PIP_SITE_PACKAGES \ + --upgrade --force-reinstall \ -r ${source_dir}/python/requirements-wheel-build.txt pip install "delocate>=0.10.3" From 8eaf42c55ef55e23185c6c77a3b00c46fe0eb880 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Wed, 7 Jan 2026 08:49:39 +0900 Subject: [PATCH 4/5] Revert unrelated change --- ci/scripts/install_python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/install_python.sh b/ci/scripts/install_python.sh index 4e98203b1fa..c683d2b883f 100755 --- a/ci/scripts/install_python.sh +++ b/ci/scripts/install_python.sh @@ -87,7 +87,7 @@ EOF echo "Installing Pip..." $python -m ensurepip - $python -m pip install -U pip "setuptools>=77" + $python -m pip install -U pip setuptools else echo "Unsupported platform: $platform" exit 1 From 713cf92219d2e4c240981b2206b5df880b732830 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Wed, 7 Jan 2026 11:09:37 +0900 Subject: [PATCH 5/5] Review comments --- ci/scripts/python_wheel_macos_build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/scripts/python_wheel_macos_build.sh b/ci/scripts/python_wheel_macos_build.sh index a7c6bf2ffca..bd61154430e 100755 --- a/ci/scripts/python_wheel_macos_build.sh +++ b/ci/scripts/python_wheel_macos_build.sh @@ -56,9 +56,10 @@ if [[ $FREE_THREADED_BUILD == "True" ]]; then fi pip install \ + --force-reinstall \ --only-binary=:all: \ --target $PIP_SITE_PACKAGES \ - --upgrade --force-reinstall \ + --upgrade \ -r ${source_dir}/python/requirements-wheel-build.txt pip install "delocate>=0.10.3"