RFC Support Python freethreading
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest14 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | python3-dir.bbclass: Support python freethreadingmeta/ | +7 | 0 replies | |
| 2/14 | python3: Adapt recipe to freethreadingmeta/ | +32 | 0 replies | |
| 3/14 | python3native.bbclass: Fix settingsmeta/ | +2 | 0 replies | |
| 4/14 | python_pyo3.bbclass: Pass ABI flag and PYTHON_MAINVERSIONmeta/ | +3 | 0 replies | |
| 5/14 | clang: Use PYTHON_MAINVERSION for python module versioningmeta/ | +1 | 0 replies | |
| 6/14 | gdb, gdb-cross-canadian: Fix settings for python freethreadingmeta/ meta/ | +4 | 0 replies | |
| 7/14 | boost: Fix settings for python freethreadingmeta/ | +1 | 0 replies | |
| 8/14 | lttng-tools: Simplify setting PYTHON_INCLUDEmeta/ | +1 | 0 replies | |
| 9/14 | lttng-ust: Simplify setting PYTHON_INCLUDEmeta/ | +1 | 0 replies | |
| 10/14 | libcap-ng-python: Use PYTHON_DIR for FILESmeta/ | +4 | 0 replies | |
| 11/14 | hwlatdetect: Use PYTHON_DIR to support python freethreadingmeta/ | +3 | 0 replies | |
| 12/14 | rpm: Support Python freethreadingmeta/ meta/ | +38 | 0 replies | |
| 13/14 | xcb-proto: Support Python freethreadingmeta/ | +6 | 0 replies | |
| 14/14 | libxcb: Support Python freethreadingmeta/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC][PATCH 00/14] Support Python freethreading
This patchset allows turning on Python freethreading by using a new DISTRO_FEATURES setting:
DISTRO_FEATURES += "python_freethreading"
and optionally:
DISTRO_FEATURES_NATIVE += "python_freethreading"
The change to python3-dir.bbclass is crucial, as all python module build helper classes rely on it.
I also added native variants of some settings because another series against meta-openembedded is needed to complete this one. In that, the change to the fontforge recipe relies on the native setting for setting BUILD_LDFLAGS.
All of the changes included here were successfully build tested, except for the gdb-cross-canadian change. That one failed, but it's included for completeness.
Quite a few of python modules were build tested for native and target builds, including python3-pytorch from my meta-python-ai with reduced RDEPENDS because e.g. python3-onnx there failed to build with freethreading enabled.
All in all, this series at least allows to get things going. Though maybe not for Yocto 6.0, as it's quite late.
Best regards,
Zoltán Böszörményi