diff mbox series

python3: Add a new PACKAGECONFIG knob for free threading

Message ID 20260312113343.3570819-1-zboszor@gmail.com
State Under Review
Headers show
Series python3: Add a new PACKAGECONFIG knob for free threading | expand

Commit Message

Zoltán Böszörményi March 12, 2026, 11:33 a.m. UTC
One of the main points in the Python 3.14.x release notes was
that free threading is officially supported.

Add PACKAGECONFIG[freethreading] to turn it on with --disable-gil.
GIL is the Global Interpreter Lock, which is kept enabled without
this option.

By default, keep free threading disabled, i.e. GIL enabled.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta/recipes-devtools/python/python3_3.14.3.bb | 1 +
 1 file changed, 1 insertion(+)

Comments

Alexander Kanavin March 12, 2026, 11:38 a.m. UTC | #1
On Thu, 12 Mar 2026 at 12:33, Zoltan Boszormenyi via
lists.openembedded.org <zboszor=gmail.com@lists.openembedded.org>
wrote:
> +PACKAGECONFIG[freethreading] = "--disable-gil,"

For build determinism, the enabling option is useful too, even if
upstream is not likely to change defaults or introduce some kind of
auto-detection.

Alex
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3_3.14.3.bb b/meta/recipes-devtools/python/python3_3.14.3.bb
index 7047cd8e8d..1b2ef1e915 100644
--- a/meta/recipes-devtools/python/python3_3.14.3.bb
+++ b/meta/recipes-devtools/python/python3_3.14.3.bb
@@ -112,6 +112,7 @@  CACHED_CONFIGUREVARS:append:libc-musl = "\
 
 # PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407
 PACKAGECONFIG ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
+PACKAGECONFIG[freethreading] = "--disable-gil,"
 PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline"
 PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline"
 # Use profile guided optimisation by running PyBench inside qemu-user