The dftracer-utils Python extension cannot use the stable ABI (abi3) without a rewrite
FactVerified 30 Sep 2026Holds project: dftracer-utils
Fact. A statement and the evidence for it.
Statement#
The extension uses PyList_GET_ITEM, PyTuple_GET_ITEM, static PyTypeObject and _PyThreadState_UncheckedGet. None of these is in the stable ABI, so abi3 would need a rewrite. Wheels are therefore built once per Python version, one after another inside cibuildwheel.
Evidence#
Code read by an observer after a wheel CI session, 2026-09-30. The ccache hit rate of the wheel builds is in the decision on precompiled headers.
Also found by searching
- cibuildwheel CIBW_BUILD cp39-* cp310-* ... each Python version built serially, can I use py_limited_api abi3?
- wheel builds take forever because we build one wheel per Python version
- can the dftracer-utils Python extension be built as a single abi3 stable ABI wheel?
- Py_LIMITED_API not possible: PyList_GET_ITEM, static PyTypeObject, _PyThreadState_UncheckedGet used
- can I build the dftracer-utils Python wheel with abi3 stable ABI to ship one wheel for all versions?
- why are there separate wheels per Python version in cibuildwheel, abi3 Py_LIMITED_API
- PyList_GET_ITEM PyThreadState_UncheckedGet fails with limited API
- reduce wheel build time by using abi3 tag, is it possible for the extension