GH-44421: [Python] Add configuration for building & testing free-threaded wheels on Windows#44804
Conversation
|
|
|
If someone could trigger the new jobs, that'd be really helpful! |
|
@github-actions crossbow submit -g wheel-windows-* |
|
|
@github-actions crossbow submit wheel-windows-* |
|
Revision: 78d8f9e1f3649a9769046917c54f8bf6df379f6f Submitted crossbow builds: ursacomputing/crossbow @ actions-86ba33e477 |
raulcd
left a comment
There was a problem hiding this comment.
Thanks for the PR, I triggered the CI jobs
|
Unfortunately, while the free-threaded wheel is built correctly, |
|
Also, the failure on 3.9 is that |
I haven't tested and I am unsure if this works but maybe we can try this (https://stackoverflow.com/a/21912169): |
|
The Windows failure is probably related to pypa/setuptools#4662 and should be fixed in the next setuptools release. |
Hmm, that one should be fixed in CPython AFAIU: python/cpython#111650 |
|
Ah, scratch that, the rationale is actually here: |
Well, stderr should already be shown by default, so it's weird that nothing gets displayed. |
95a0a53 to
83a76e3
Compare
|
@github-actions crossbow submit wheel-windows-* |
|
Given setuptools does not seem in a hurry to merge the distutils fix, I've tried to push a manual workaround in this PR. |
|
Revision: 83a76e31e1272824d84ca97e4e513f12d7c73f03 Submitted crossbow builds: ursacomputing/crossbow @ actions-5bfc22ac30 |
|
Well, building the free-threaded wheel failed with: Edit: I've checked: that file exists in a Python 3.13 Windows install. |
|
@github-actions crossbow submit wheel-windows-cp313* |
|
@github-actions crossbow submit wheel-windows* |
|
Revision: b3ce08c75c66571a7eb84f627b4e585a2d0ade6f Submitted crossbow builds: ursacomputing/crossbow @ actions-ec43532048 |
ci/docker/python-free-threaded-wheel-windows-test-vs2019.dockerfile
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Can we use python-wheel-windows-test-vs2019-base.dockerfile as the base image?
There was a problem hiding this comment.
Why would we? That would make things more complicated.
There was a problem hiding this comment.
Because I felt that python-wheel-windows-{,test-}vs2019-base.dockerfile have many duplication. But I re-read them now, there are not so much duplication. Sorry.
4c9872d to
097c9c6
Compare
|
@github-actions crossbow submit wheel-windows* |
|
Revision: 764437b2d222f6b7f769629b387cbbddb27673e3 Submitted crossbow builds: ursacomputing/crossbow @ actions-f31cf1d015 |
|
Updated CI still green, this is ready for review again @kou |
.env
Outdated
There was a problem hiding this comment.
Can we avoid the a suffix?
| PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2025-01-06 | |
| PYTHON_WHEEL_WINDOWS_TEST_IMAGE_REVISION=2025-01-06a | |
| PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2025-01-08 | |
| PYTHON_WHEEL_WINDOWS_TEST_IMAGE_REVISION=2025-01-08 |
.pre-commit-config.yaml
Outdated
There was a problem hiding this comment.
Does this match python-wheel-windows-vs2019-base.dockerfile?
There was a problem hiding this comment.
Probably not, but this is asking for more and more things that are outside of the scope of this PR...
Also, the diagnostics emitted by hadolint don't seem terribly useful, especially when we have to silence most of them.
There was a problem hiding this comment.
Could you add a comment that explains what is DL3006?
A link to https://github.com/hadolint/hadolint/wiki/DL3006 and the summary in the page ("Always tag the version of an image explicitly.") will be enough.
There was a problem hiding this comment.
Uh, sure. But is hadolint actually useful? It seems terribly limited.
There was a problem hiding this comment.
Is there any useful hadolint alternative? I'm OK with migrating to it from hadolint.
There was a problem hiding this comment.
I have no idea. I can add a comment in the meantime.
There was a problem hiding this comment.
Ok, I've added comments. But this is polluting the source code with pointless comments and making it less readable.
764437b to
f212df9
Compare
|
@github-actions crossbow submit wheel-windows* |
|
Revision: f212df9 Submitted crossbow builds: ursacomputing/crossbow @ actions-ad58f7ee92 |
|
Ok, CI is green again. Do the comments look good to you @kou ? |
Rationale for this change
There's no blockers anymore for building Windows wheels for the free-threaded build, so this PR adds the necessary configuration to do that.
What changes are included in this PR?
Are these changes tested?
No tests required.
Are there any user-facing changes?
No.