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
davidhewitt
left a comment
There was a problem hiding this comment.
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
davidhewitt
left a comment
There was a problem hiding this comment.
Thanks, I think this is looking pretty much there. Just some final tidy ups...
davidhewitt
left a comment
There was a problem hiding this comment.
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_threadedargument to thepymodulemacro and asupports_free_threadedmethod toPyModule.Updates the tests and examples to mark that they support free-threading.
Removes
UNSAFE_PYO3_BUILD_FREE_THREADED=1from the build config.