-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48735: [CI][Python] Fix macOS wheel builds by forcing setuptools upgrade in venv #48739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…uirements-wheel-build.txt
|
@github-actions crossbow submit wheel-macos-monterey-* |
|
Revision: 144e05b Submitted crossbow builds: ursacomputing/crossbow @ actions-389d7a670d |
|
Let me take a look at the test failure. |
|
@github-actions crossbow submit wheel-macos-monterey-* |
|
Revision: 6e371d5 Submitted crossbow builds: ursacomputing/crossbow @ actions-98ec6a6d4e |
|
@github-actions crossbow submit wheel-macos-monterey-* |
|
Revision: 51677cf Submitted crossbow builds: ursacomputing/crossbow @ actions-61d9a49410 |
|
@github-actions crossbow submit wheel-macos-monterey-* |
|
Revision: b1c9cc9 Submitted crossbow builds: ursacomputing/crossbow @ actions-86ccd629ef |
|
Should be ready for a look. |
rok
left a comment
There was a problem hiding this 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.
b1c9cc9 to
8eaf42c
Compare
|
I rebased to retrigger the test. The test failures should be unrelated. |
kou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
AlenkaF
left a comment
There was a problem hiding this 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!!
|
YAY! |
|
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. |
Rationale for this change
Commit 866502e updated
pyproject.tomlto use the license formatlicense = "Apache-2.0"and requiredsetuptools>=77in[build-system].However, macOS wheel builds for Python 3.10 were failing with:
While Python 3.12 builds passed with identical code.
When
python -m venv build-envcreates the virtual environment, Python 3.10's venv inherits an older setuptools from the system Python installation. The build script usespip install --targetwhich seems not upgrading existing packages, leaving the old setuptools active for some reasons.Evidence from Python 3.10 logs:
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-reinstallflags to pip install command to force replacement of any old setuptools inherited from system PythonIn addition, also added
setuptools>=77atpython/requirements-wheel-build.txtto match with the original PR.Are these changes tested?
Tested in CI: #48739 (comment)
Are there any user-facing changes?
No, test/dev-only.