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>
This commit is contained in:
Richard Purdie 2025-03-19 19:54:38 +00:00
parent 0063905fcd
commit 65db5783d3

View File

@ -822,10 +822,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.8
# Check the Python version, we now have a minimum of Python 3.9
import sys
if sys.hexversion < 0x030800F0:
status.addresult('The system requires at least Python 3.8 to run. Please update your Python interpreter.\n')
if sys.hexversion < 0x030900F0:
status.addresult('The system requires at least Python 3.9 to run. Please update your Python interpreter.\n')
# Check the bitbake version meets minimum requirements
minversion = d.getVar('BB_MIN_VERSION')