mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
sanity: Bump min python version to 3.6
There are a number of reasons 3.6 is a good minimum version. Of our supported/tested distros, only debian 9 still had python 3.5, the others have 3.6+ or already required buildtools-tarball. New versions of qemu need python 3.6 as a minimum. We could work around that but it seems simper to require 3.6 which will allow other improvements. As such, bump the minimum python version requirement to 3.6. (From OE-Core rev: 09385dd8d6be3aac31a4d8b1ca935d4fadfef7ba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -770,10 +770,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.4
|
||||
# Check the Python version, we now have a minimum of Python 3.6
|
||||
import sys
|
||||
if sys.hexversion < 0x030500F0:
|
||||
status.addresult('The system requires at least Python 3.5 to run. Please update your Python interpreter.\n')
|
||||
if sys.hexversion < 0x030600F0:
|
||||
status.addresult('The system requires at least Python 3.6 to run. Please update your Python interpreter.\n')
|
||||
|
||||
# Check the bitbake version meets minimum requirements
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
Reference in New Issue
Block a user