-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Description
Describe the enhancement requested
Hey all! 👋
I've started looking into adding support for the 3.13 free-threaded build of CPython. This aims to be a tracking issue for all work necessary to support it. A very high-level list of steps is (more details to follow as I investigate more issues):
- Set up CI for free-threading (This needs to be done for 3.13 as well as part of [Python][Packaging] Support Python 3.13 and upload wheels #43519).
- Move away from APIs that use borrowed references (
PyList_GetItem
,PyDict_GetItem
and friends) under the free-threaded build - Audit C extension modules for thread-safety issues
-
pyarrow
is a good candidate to test Cython again, since it's got lots of Cython code. Ideally test Cython nightly and also Freethreading thread safety cython/cython#6226. - Mark C/Cython extension modules as thread-safe with the
Py_mod_gil
slot (orPyUnstable_Module_SetGIL
/freethreading_compatible
) - Upload (nightly) wheels for the free-threaded build.
Hope this all sounds good! Let me know in case there's something that doesn't seem right.
Component(s)
Python
jorisvandenbossche, AlenkaF, edgarrmondragon, raulcd and raphaelauv