diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-11 17:37:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-12 16:16:56 +0000 |
commit | 9c36aef6102a691b8cc5fdc43f7f24bb7fe665db (patch) | |
tree | 15b2e3c6443ae9e9e9a08b0c0b7434a8ec5b13e7 /meta/classes-global | |
parent | 7d67b6356033b5ffeb37d13bf748632ce917289b (diff) | |
download | poky-9c36aef6102a691b8cc5fdc43f7f24bb7fe665db.tar.gz |
sanity: Update minimum python version to 3.8
Bitbake is moving to a minimum python version of 3.8, update OE-Core
to match to make things consistent.
(From OE-Core rev: cc05bc04156122fd6f918191a9cec7bc0392415e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-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 bc188eefb7..b42fc526c4 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass | |||
@@ -759,10 +759,10 @@ def check_sanity_everybuild(status, d): | |||
759 | if 0 == os.getuid(): | 759 | if 0 == os.getuid(): |
760 | raise_sanity_error("Do not use Bitbake as root.", d) | 760 | raise_sanity_error("Do not use Bitbake as root.", d) |
761 | 761 | ||
762 | # Check the Python version, we now have a minimum of Python 3.6 | 762 | # Check the Python version, we now have a minimum of Python 3.8 |
763 | import sys | 763 | import sys |
764 | if sys.hexversion < 0x030600F0: | 764 | if sys.hexversion < 0x030800F0: |
765 | status.addresult('The system requires at least Python 3.6 to run. Please update your Python interpreter.\n') | 765 | status.addresult('The system requires at least Python 3.8 to run. Please update your Python interpreter.\n') |
766 | 766 | ||
767 | # Check the bitbake version meets minimum requirements | 767 | # Check the bitbake version meets minimum requirements |
768 | minversion = d.getVar('BB_MIN_VERSION') | 768 | minversion = d.getVar('BB_MIN_VERSION') |