remove tensorflow DISTRO_FEATURES and Python version check
cover remove tensorflow DISTRO_FEATURES and Python version check
tflite used to not be able to compile on Python 3.14 that is in OE-Core and required to use the backported 3.13 Python recipe. Since, tflite has been updated and now supports 3.14 therefore the work-around isn't needed anymore. Some cleanup was done but not entirely, this cleans up the remaining parts.
Add b4 config file so contribution is easy with b4.
Fix mailing list address in MAINTAINERS.md.
---
Quentin Schulz (3):
add basic b4 config file
MAINTAINERS.md: fix mailing list address fully remove unneeded python3 work-around for tflite
.b4-config | 3 +++ BUILD.md | 3 --- MAINTAINERS.md | 2 +- classes/tensorflow_ver.bbclass | 20 -------------------- 4 files changed, 4 insertions(+), 24 deletions(-)
---
base-commit: 078ed7b791faa38553ecf8e93048bd463f6edc8f
change-id: 20260423-python3-14-tflite-9ba5640a0c42
Best regards,
Signature · 1 line
Quentin Schulz <[email protected]>
PATCH 1/3 add basic b4 config file
From: Quentin Schulz <[email protected]>
b4[1] is a very nice tool for mail-based contribution. A config[2] file exists to set up a few defaults. We can use it to set the To recipients to always add, in our case the mailing list.
Additionally, automatically provide a default prefix so that one doesn't need to not forget to run b4 prep --set-prefixes meta-tensorflow for each series.
[1] https://pypi.org/project/b4/
[2] https://b4.docs.kernel.org/en/latest/config.html
--- .b4-config | 3 +++ 1 file changed, 3 insertions(+)
.b4-config new file +3 -0
@@ -0,0 +1,3 @@ +[b4] + send-series-to = [email protected] + send-prefixes = meta-tensorflow
Signature · 1 line
2.53.0
PATCH 2/3 MAINTAINERS.md: fix mailing list address
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
In commit 03414faa6a5f ("MAINTAINERS.md: fix e-mail address"), the mailing list mail address was properly updated, but only in the git-send-email command and not in the text above.
Also, the mailing list address was incorrect as it was @yoctoproject.org instead of @lists.yoctoproject.org.
--- MAINTAINERS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS.md +1 -1
@@ -14,7 +14,7 @@ Maintainers: Hongxu Jia <[email protected]> ### 1. Yocto ``` Contributions and patches can be sent to the Yocto Project mailing -list: [email protected]" +list: [email protected]" When sending patches please take a look at the contribution guide available here: https://wiki.yoctoproject.org/wiki/Contribution_Guidelines
Signature · 1 line
2.53.0
PATCH 3/3 fully remove unneeded python3 work-around for tflite
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
tflite used to be only compatible with Python 3.13 but we already had Python 3.14 in OE-Core. To work-around that until tflite caught up with the newest version of Python, meta-tensorflow had the option to use Python 3.13 via a tensorflow DISTRO_FEATURES and changing PYTHON_BASEVERSION.
In any case, since tflite has been updated an now supports Python 3.14, the Python 3.13 recipe was removed. However, the remaining of the work-around wasn't removed, still requiring tensorflow to be in DISTRO_FEATURES.
Remove tensorflow DISTRO_FEATURES check and Python version as we know it's going to be using 3.14 now.
--- BUILD.md | 3 --- classes/tensorflow_ver.bbclass | 20 -------------------- 2 files changed, 23 deletions(-)
BUILD.md +0 -3
@@ -16,9 +16,6 @@ $ . <ts-project>/oe-core/oe-init-build-env <build> # Build qemux86-64 which runqemu supports kvm. $ echo 'MACHINE = "qemux86-64"' >> conf/local.conf -$ echo 'DISTRO_FEATURES:append = " tensorflow"' >> conf/local.conf -$ echo 'DISTRO_FEATURES_NATIVE:append = " tensorflow"' >> conf/local.conf -$ echo 'DISTRO_FEATURES_NATIVESDK:append = " tensorflow"' >> conf/local.conf $ echo 'IMAGE_INSTALL:append = " tensorflow"' >> conf/local.conf
classes/tensorflow_ver.bbclass +0 -20
@@ -3,23 +3,3 @@ TF_ARGS_EXTRA ??= "--config=v2" # Uncomment the following line to build tensorflow 1.x #TF_ARGS_EXTRA = "--config=v1" - -python __anonymous() { - if not bb.utils.contains("DISTRO_FEATURES", "tensorflow", True, False, d): - msg = "\nThe official TensorFlow is tested and supported under Python 3.14\n" - msg += "Please add the following to local.conf\n" - msg += " DISTRO_FEATURES:append = ' tensorflow'\n" - msg += " DISTRO_FEATURES_NATIVE:append = ' tensorflow'\n" - msg += " DISTRO_FEATURES_NATIVESDK:append = ' tensorflow'\n" - raise bb.parse.SkipPackage(msg) - - if d.getVar("PYTHON_BASEVERSION") != "3.14": - msg = "\nThe official TensorFlow is tested and supported under Python 3.14\n" - msg += "Please add the following to local.conf\n" - msg += " PYTHON_BASEVERSION:class-target = '3.14'\n" - msg += " PYTHON_BASEVERSION:class-native = '3.14'\n" - msg += " PYTHON_BASEVERSION:class-nativesdk = '3.14'\n" - msg += "It will apply python3 modules for 3.13" - raise bb.parse.SkipPackage(msg) -} -
Signature · 1 line
2.53.0
Quoted 10 lines · Quentin Schulz via lists.yoctoproject.org
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.tflite used to not be able to compile on Python 3.14 that is in OE-Core and required to use the backported 3.13 Python recipe. Since, tflite has been updated and now supports 3.14 therefore the work-around isn't needed anymore. Some cleanup was done but not entirely, this cleans up the remaining parts.
Add b4 config file so contribution is easy with b4.
Thanks for your contribution, merged
//Hongxu
Quoted 33 lines
Fix mailing list address in MAINTAINERS.md.
Signed-off-by Quentin Schulz <[email protected]>---
Quentin Schulz (3):
add basic b4 config file
MAINTAINERS.md: fix mailing list address fully remove unneeded python3 work-around for tflite.b4-config | 3 +++ BUILD.md | 3 --- MAINTAINERS.md | 2 +- classes/tensorflow_ver.bbclass | 20 -------------------- 4 files changed, 4 insertions(+), 24 deletions(-)---
base-commit:078ed7b791faa38553ecf8e93048bd463f6edc8f
change-id: 20260423-python3-14-tflite-9ba5640a0c42Best regards,
--
Quentin Schulz <[email protected]>-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#3779): https://lists.yoctoproject.org/g/yocto-patches/message/3779
Mute This Topic: https://lists.yoctoproject.org/mt/118972926/3617049
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13176071/3617049/43253763/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-