Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jan 6, 2026

Rationale for this change

Commit 866502e updated pyproject.toml to use the license format license = "Apache-2.0" and required setuptools>=77 in [build-system].

However, macOS wheel builds for Python 3.10 were failing with:

configuration error: `project.license` must be valid exactly by one definition (2 matches found)

While Python 3.12 builds passed with identical code.

When python -m venv build-env creates the virtual environment, Python 3.10's venv inherits an older setuptools from the system Python installation. The build script uses pip install --target which seems not upgrading existing packages, leaving the old setuptools active for some reasons.

Evidence from Python 3.10 logs:

WARNING: Target directory .../build-env/lib/python3.10/site-packages/setuptools already exists. Specify --upgrade to force replacement.

Python 3.12 had no such warnings and used the fresh setuptools-80.9.0.

What changes are included in this PR?

In ci/scripts/python_wheel_macos_build.sh, added --upgrade --force-reinstall flags to pip install command to force replacement of any old setuptools inherited from system Python

In addition, also added setuptools>=77 at python/requirements-wheel-build.txt to match with the original PR.

Are these changes tested?

Tested in CI: #48739 (comment)

Are there any user-facing changes?

No, test/dev-only.

@github-actions github-actions bot added awaiting review Awaiting review Component: Python and removed awaiting review Awaiting review labels Jan 6, 2026
@AlenkaF
Copy link
Member

AlenkaF commented Jan 6, 2026

@github-actions crossbow submit wheel-macos-monterey-*

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Revision: 144e05b

Submitted crossbow builds: ursacomputing/crossbow @ actions-389d7a670d

Task Status
wheel-macos-monterey-cp310-cp310-amd64 GitHub Actions
wheel-macos-monterey-cp310-cp310-arm64 GitHub Actions
wheel-macos-monterey-cp311-cp311-amd64 GitHub Actions
wheel-macos-monterey-cp311-cp311-arm64 GitHub Actions
wheel-macos-monterey-cp312-cp312-amd64 GitHub Actions
wheel-macos-monterey-cp312-cp312-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-arm64 GitHub Actions

@HyukjinKwon HyukjinKwon marked this pull request as draft January 6, 2026 12:28
@HyukjinKwon
Copy link
Member Author

Let me take a look at the test failure.

@github-actions github-actions bot added the awaiting review Awaiting review label Jan 6, 2026
@HyukjinKwon
Copy link
Member Author

@github-actions crossbow submit wheel-macos-monterey-*

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Revision: 6e371d5

Submitted crossbow builds: ursacomputing/crossbow @ actions-98ec6a6d4e

Task Status
wheel-macos-monterey-cp310-cp310-amd64 GitHub Actions
wheel-macos-monterey-cp310-cp310-arm64 GitHub Actions
wheel-macos-monterey-cp311-cp311-amd64 GitHub Actions
wheel-macos-monterey-cp311-cp311-arm64 GitHub Actions
wheel-macos-monterey-cp312-cp312-amd64 GitHub Actions
wheel-macos-monterey-cp312-cp312-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-arm64 GitHub Actions

@HyukjinKwon
Copy link
Member Author

@github-actions crossbow submit wheel-macos-monterey-*

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Revision: 51677cf

Submitted crossbow builds: ursacomputing/crossbow @ actions-61d9a49410

Task Status
wheel-macos-monterey-cp310-cp310-amd64 GitHub Actions
wheel-macos-monterey-cp310-cp310-arm64 GitHub Actions
wheel-macos-monterey-cp311-cp311-amd64 GitHub Actions
wheel-macos-monterey-cp311-cp311-arm64 GitHub Actions
wheel-macos-monterey-cp312-cp312-amd64 GitHub Actions
wheel-macos-monterey-cp312-cp312-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-arm64 GitHub Actions

@HyukjinKwon
Copy link
Member Author

@github-actions crossbow submit wheel-macos-monterey-*

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Revision: b1c9cc9

Submitted crossbow builds: ursacomputing/crossbow @ actions-86ccd629ef

Task Status
wheel-macos-monterey-cp310-cp310-amd64 GitHub Actions
wheel-macos-monterey-cp310-cp310-arm64 GitHub Actions
wheel-macos-monterey-cp311-cp311-amd64 GitHub Actions
wheel-macos-monterey-cp311-cp311-arm64 GitHub Actions
wheel-macos-monterey-cp312-cp312-amd64 GitHub Actions
wheel-macos-monterey-cp312-cp312-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313-arm64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-amd64 GitHub Actions
wheel-macos-monterey-cp313-cp313t-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314-arm64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-amd64 GitHub Actions
wheel-macos-monterey-cp314-cp314t-arm64 GitHub Actions

@HyukjinKwon HyukjinKwon changed the title GH-48735: [Python] Update setuptools requirement to >=77 in requirements-wheel-build.txt GH-48735: [Python] Fix macOS wheel builds by forcing setuptools upgrade in venv Jan 6, 2026
@HyukjinKwon HyukjinKwon marked this pull request as ready for review January 6, 2026 23:54
@HyukjinKwon
Copy link
Member Author

Should be ready for a look.

Copy link
Member

@rok rok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense! Will let @AlenkaF take another look.

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Jan 7, 2026
@HyukjinKwon
Copy link
Member Author

I rebased to retrigger the test. The test failures should be unrelated.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@HyukjinKwon HyukjinKwon changed the title GH-48735: [Python] Fix macOS wheel builds by forcing setuptools upgrade in venv GH-48735: [CI][Python] Fix macOS wheel builds by forcing setuptools upgrade in venv Jan 7, 2026
Copy link
Member

@AlenkaF AlenkaF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you for such a quick fix!!

@AlenkaF AlenkaF merged commit 2184116 into apache:main Jan 7, 2026
16 checks passed
@AlenkaF AlenkaF removed the awaiting merge Awaiting merge label Jan 7, 2026
@HyukjinKwon
Copy link
Member Author

YAY!

@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Jan 7, 2026
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 2184116.

There weren't enough matching historic benchmark results to make a call on whether there were regressions.

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants