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>
This commit is contained in:
Richard Purdie
2022-12-11 17:37:08 +00:00
parent 7d67b63560
commit 9c36aef610

View 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')