-
Notifications
You must be signed in to change notification settings - Fork 784
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
Declare free-threaded support for PyModule #4588
Conversation
Just a note that this should probably only be merged once all the "RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module foo" warnings in the python tests are fixed in the free-threaded build. |
6834f3f
to
1bd1338
Compare
This is done now and I think all the tests are passing so I'm going to move this out of draft phase and update the PR description. |
This probably needs some discussion in the new guide section on free-threading support. |
11f2a12
to
3021c46
Compare
woohoo! looks like tests are passing except for the codecov issue affecting all PRs right now. |
599a58e
to
8f86b9e
Compare
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.
Thanks, broadly looks great to me, a bunch of various thoughts :)
28d07c0
to
39ffe29
Compare
It occurred to me while working on something else that this PR should remove the EDIT: done |
356b2ac
to
a6f59f3
Compare
a6f59f3
to
f9dae80
Compare
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.
Thanks, I think this is looking pretty much there. Just some final tidy ups...
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.
Super, this looks ready to ship! Thanks very much for all the work here and on the rest of the freethreading PRs 🚀
Adds a
supports_free_threaded
argument to thepymodule
macro and asupports_free_threaded
method toPyModule
.Updates the tests and examples to mark that they support free-threading.
Removes
UNSAFE_PYO3_BUILD_FREE_THREADED=1
from the build config.