Skip to content

RFC Support Python freethreading

Zoltán Böszörményi openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14python3-dir.bbclass: Support python freethreadingmeta/classes-recipe/python3-dir.bbclass+7 -20 replies
2/14python3: Adapt recipe to freethreadingmeta/recipes-devtools/python/python3_3.14.3.bb+32 -290 replies
3/14python3native.bbclass: Fix settingsmeta/classes-recipe/python3native.bbclass+2 -20 replies
4/14python_pyo3.bbclass: Pass ABI flag and PYTHON_MAINVERSIONmeta/classes-recipe/python_pyo3.bbclass+3 -10 replies
5/14clang: Use PYTHON_MAINVERSION for python module versioningmeta/recipes-devtools/clang/clang_git.bb+1 -10 replies
6/14gdb, gdb-cross-canadian: Fix settings for python freethreadingmeta/recipes-devtools/gdb/gdb-cross-canadian.inc meta/recipes-devtools/gdb/gdb_17.1.bb+4 -40 replies
7/14boost: Fix settings for python freethreadingmeta/recipes-support/boost/boost.inc+1 -10 replies
8/14lttng-tools: Simplify setting PYTHON_INCLUDEmeta/recipes-kernel/lttng/lttng-tools_2.14.1.bb+1 -10 replies
9/14lttng-ust: Simplify setting PYTHON_INCLUDEmeta/recipes-kernel/lttng/lttng-ust_2.14.0.bb+1 -10 replies
10/14libcap-ng-python: Use PYTHON_DIR for FILESmeta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb+4 -10 replies
11/14hwlatdetect: Use PYTHON_DIR to support python freethreadingmeta/recipes-rt/rt-tests/hwlatdetect_git.bb+3 -30 replies
12/14rpm: Support Python freethreadingmeta/recipes-devtools/rpm/files/0001-rpm-Don-t-use-stable-API.patch meta/recipes-devtools/rpm/rpm_4.20.1.bb+38 -00 replies
13/14xcb-proto: Support Python freethreadingmeta/recipes-graphics/xorg-proto/xcb-proto_1.17.0.bb+6 -00 replies
14/14libxcb: Support Python freethreadingmeta/recipes-graphics/xorg-lib/libxcb_1.17.0.bb+2 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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