Skip to content
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

CI Add Windows free-threaded wheel #30313

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Nov 20, 2024

Seems like scipy has a free-threaded wheel in scientific-python-nightly-wheel.

As noted in #28978 (comment) the fact that we use a Windows docker image in our setup is a bit cumbersome but I am trying the easiest thing for now which is to not use a Docker image for the free-threaded build.

The alternative would be to write some powershell to install free-threaded CPython in the minimal Docker image but it seems a bit too much work for what it is worth. I would guess this is not that likely that a missing DLL would happen for free-threaded and not vanilla CPython.

Context: the reason we have this custom Docker image on Windows is to avoid missing DLLs, see #15899, #18802 and #24612 (comment).

Copy link

github-actions bot commented Nov 20, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: f2522ef. Link to the linter CI: here

@lesteve lesteve changed the title CI Add Windows free-threaded wheels CI Add Windows free-threaded wheel Nov 20, 2024
@lesteve lesteve marked this pull request as ready for review November 20, 2024 17:40
@lesteve
Copy link
Member Author

lesteve commented Nov 20, 2024

This seems to work fine, I think this is ready to review.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

We can give it a try. Let see how stable this is regarding the DLL thingy.

@ogrisel
Copy link
Member

ogrisel commented Nov 23, 2024

I checked that the tests are actually run in the free-threading version of Python here:

https://github.com/scikit-learn/scikit-learn/actions/runs/11935841880/job/33268132459?pr=30313#step:5:1984

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
@glemaitre glemaitre merged commit f54c98e into scikit-learn:main Nov 25, 2024
30 checks passed
@glemaitre glemaitre added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Nov 25, 2024
@glemaitre glemaitre added this to the 1.6 milestone Nov 25, 2024
@lesteve lesteve deleted the windows-free-threaded-wheels branch November 25, 2024 16:55
@lesteve lesteve added the free-threading PRs and issues related to support for free-threaded CPython (a.k.a. nogil or no-GIL, PEP 703) label Nov 28, 2024
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Dec 4, 2024
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
jeremiedbb pushed a commit that referenced this pull request Dec 6, 2024
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
virchan pushed a commit to virchan/scikit-learn that referenced this pull request Dec 9, 2024
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build / CI free-threading PRs and issues related to support for free-threaded CPython (a.k.a. nogil or no-GIL, PEP 703) To backport PR merged in master that need a backport to a release branch defined based on the milestone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants