]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
sanity: Update minimum python version to 3.8
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 Dec 2022 17:37:08 +0000 (17:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Dec 2022 16:16:20 +0000 (16:16 +0000)
Bitbake is moving to a minimum python version of 3.8, update OE-Core
to match to make things consistent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/sanity.bbclass

index 6cb0d6cf88255c41cd8411b92a51ed8c840a3e34..8dfd59f457e67ca31bec5b1074597391fc68655f 100644 (file)
@@ -759,10 +759,10 @@ def check_sanity_everybuild(status, d):
     if 0 == os.getuid():
         raise_sanity_error("Do not use Bitbake as root.", d)
 
-    # Check the Python version, we now have a minimum of Python 3.6
+    # Check the Python version, we now have a minimum of Python 3.8
     import sys
-    if sys.hexversion < 0x030600F0:
-        status.addresult('The system requires at least Python 3.6 to run. Please update your Python interpreter.\n')
+    if sys.hexversion < 0x030800F0:
+        status.addresult('The system requires at least Python 3.8 to run. Please update your Python interpreter.\n')
 
     # Check the bitbake version meets minimum requirements
     minversion = d.getVar('BB_MIN_VERSION')