diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-19 19:54:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-20 11:29:04 +0000 |
commit | 65db5783d36c90bea04583a1194b588b544e6ab3 (patch) | |
tree | 1f754fb71d8be81bb713c6599b87f8483cd16930 | |
parent | 0063905fcdc04d194d66ab481b2814513785cc6b (diff) | |
download | poky-65db5783d36c90bea04583a1194b588b544e6ab3.tar.gz |
sanity: Bump minimum python version requirement to 3.9
Since Ubuntu 20.04 is heading to EoL and that we're having other issues
on that platform needing buildtools anyway, we're about to lose the
last python 3.8 platform we were supporting.
Bump the minimum version to 3.9 since there are many developers wanting
access to newer python features.
This likely won't be seen since the bitbake minimum has also been
increased but helps for documentation purposes.
(From OE-Core rev: c3db241c6e97420ca0705d1535a7cdd0c273b761)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-global/sanity.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index 1bae998f74..7f83239c6e 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass | |||
@@ -822,10 +822,10 @@ def check_sanity_everybuild(status, d): | |||
822 | if 0 == os.getuid(): | 822 | if 0 == os.getuid(): |
823 | raise_sanity_error("Do not use Bitbake as root.", d) | 823 | raise_sanity_error("Do not use Bitbake as root.", d) |
824 | 824 | ||
825 | # Check the Python version, we now have a minimum of Python 3.8 | 825 | # Check the Python version, we now have a minimum of Python 3.9 |
826 | import sys | 826 | import sys |
827 | if sys.hexversion < 0x030800F0: | 827 | if sys.hexversion < 0x030900F0: |
828 | status.addresult('The system requires at least Python 3.8 to run. Please update your Python interpreter.\n') | 828 | status.addresult('The system requires at least Python 3.9 to run. Please update your Python interpreter.\n') |
829 | 829 | ||
830 | # Check the bitbake version meets minimum requirements | 830 | # Check the bitbake version meets minimum requirements |
831 | minversion = d.getVar('BB_MIN_VERSION') | 831 | minversion = d.getVar('BB_MIN_VERSION') |