public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* Use PYTHON_DIR consistently
@ 2026-03-26 12:42 Zoltán Böszörményi
  2026-03-26 12:42 ` [PATCH 01/13] python3: Add warning comment before PACKAGECONFIG[freethreading] Zoltán Böszörményi
                   ` (12 more replies)
  0 siblings, 13 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
  To: openembedded-core
  Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
	Bruce Ashfield

The Python main version includes the ABI flag, which can be either "t"
for 3.13 or newer if free-threading[1] is enabled, or an empty string.

Previously, the PYTHON_DIR setting in python3-dir.bbclass was not
suffixed with the ABI flag, a.k.a the PYTHON_ABI setting.

Since PYTHON_ABI was always and still is an empty string, many recipes
used "${PYTHON_DIR}" and "${PYTHON_DIR}${PYTHON_ABI}" interchangeably.

Add the ABI flag as a suffix in PYTHON_DIR and use that in recipes
that were either using PYTHON_ABI, or manually constructed the
PYTHON_DIR value from PYTHON_BASEVERSION.

This is a preparation step before adding the (still higly experimental)
Python free-threading support in Yocto.

As is, this series is a NOP since PYTHON_ABI is set to an empty string.
This series does not effect other recipes.

Another cleanup series will be coming for openembedded-core that
will also be a NOP with or without this series.

[1] https://docs.python.org/3/howto/free-threading-python.html



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

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

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 01/13] python3: Add warning comment before PACKAGECONFIG[freethreading] Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 02/13] python3-dir.bbclass: Move PYTHON_ABI into PYTHON_DIR Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 03/13] python3: Use the variables from python3-dir.bbclass Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 04/13] python3native.bbclass: Stop using PYTHON_ABI Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 05/13] python_pyo3.bbclass: Pass ABI flag and use PYTHON_MAINVERSION Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 06/13] clang: Use PYTHON_MAINVERSION for python module versioning Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 07/13] gdb, gdb-cross-canadian: Stop using PYTHON_ABI Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 08/13] boost: " Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 09/13] lttng-tools: " Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 10/13] lttng-ust: " Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 11/13] libcap-ng-python: Use PYTHON_DIR for FILES Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 12/13] hwlatdetect: Use PYTHON_DIR Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 13/13] libxcb: inherit python3native Zoltán Böszörményi
2026-03-26 13:06   ` [OE-core] " Alexander Kanavin
2026-03-26 13:26     ` Böszörményi Zoltán
     [not found]     ` <18A0671344EE5B33.57592@lists.openembedded.org>
2026-03-26 13:47       ` 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