public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Zoltán Böszörményi" <zboszor@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: "Alexander Kanavin" <alex.kanavin@gmail.com>,
	"Zoltán Böszörményi" <zboszor@gmail.com>
Subject: [PATCH v2] python3: Add a new PACKAGECONFIG knob for free threading
Date: Thu, 12 Mar 2026 13:00:24 +0100	[thread overview]
Message-ID: <20260312120024.3745232-1-zboszor@gmail.com> (raw)

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



             reply	other threads:[~2026-03-12 12:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-12 12:00 Zoltán Böszörményi [this message]
2026-03-23 13:28 ` [OE-core] [PATCH v2] python3: Add a new PACKAGECONFIG knob for free threading 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260312120024.3745232-1-zboszor@gmail.com \
    --to=zboszor@gmail.com \
    --cc=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox