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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233984): 
https://lists.openembedded.org/g/openembedded-core/message/233984
Mute This Topic: https://lists.openembedded.org/mt/118517399/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to