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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233874): 
https://lists.openembedded.org/g/openembedded-core/message/233874
Mute This Topic: https://lists.openembedded.org/mt/118499141/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to