public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v2] python3: Add a new PACKAGECONFIG knob for free threading
@ 2026-03-12 12:00 Zoltán Böszörményi
  2026-03-23 13:28 ` [OE-core] " Bartosz Golaszewski
  0 siblings, 1 reply; 18+ messages in thread
From: Zoltán Böszörményi @ 2026-03-12 12:00 UTC (permalink / raw)
  To: openembedded-core
  Cc: Alexander Kanavin, Zoltán Böszörményi

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(+)

diff --git a/meta/recipes-devtools/python/python3_3.14.3.bb b/meta/recipes-devtools/python/python3_3.14.3.bb
index 7047cd8e8d..7a1ad1e386 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,--enable-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
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-03-25 12:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 12:00 [PATCH v2] python3: Add a new PACKAGECONFIG knob for free threading Zoltán Böszörményi
2026-03-23 13:28 ` [OE-core] " Bartosz Golaszewski
2026-03-23 13:35   ` Alexander Kanavin
2026-03-23 13:48     ` Bartosz Golaszewski
2026-03-23 14:04       ` Alexander Kanavin
2026-03-23 14:05         ` Bartosz Golaszewski
2026-03-23 14:23   ` Böszörményi Zoltán
2026-03-23 14:34     ` Bartosz Golaszewski
2026-03-23 14:40       ` Böszörményi Zoltán
2026-03-23 14:45         ` Bartosz Golaszewski
2026-03-23 14:54           ` Böszörményi Zoltán
2026-03-23 14:47         ` Alexander Kanavin
2026-03-23 14:52           ` Böszörményi Zoltán
2026-03-23 15:03             ` Trevor Gamblin
2026-03-23 17:23               ` Böszörményi Zoltán
2026-03-24  8:46                 ` Bartosz Golaszewski
2026-03-25 12:26                   ` Böszörményi Zoltán
     [not found]       ` <189F7F6305FFFD56.3195838@lists.openembedded.org>
2026-03-23 14:49         ` Böszörményi Zoltán

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox