diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-06 22:25:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-08 10:10:15 +0000 |
commit | c08279f9c3a0260f80fb0948520a24bf2fcdb422 (patch) | |
tree | 7108ee7d0c25e9b34a7c480a9be4c45e4a495c01 /meta | |
parent | 9aa638ab6f019afb45f2b40cab72d35d210d2504 (diff) | |
download | poky-c08279f9c3a0260f80fb0948520a24bf2fcdb422.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 3262d08fbf..d134b40a87 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -770,10 +770,10 @@ def check_sanity_everybuild(status, d): | |||
770 | if 0 == os.getuid(): | 770 | if 0 == os.getuid(): |
771 | raise_sanity_error("Do not use Bitbake as root.", d) | 771 | raise_sanity_error("Do not use Bitbake as root.", d) |
772 | 772 | ||
773 | # Check the Python version, we now have a minimum of Python 3.4 | 773 | # Check the Python version, we now have a minimum of Python 3.6 |
774 | import sys | 774 | import sys |
775 | if sys.hexversion < 0x030500F0: | 775 | if sys.hexversion < 0x030600F0: |
776 | status.addresult('The system requires at least Python 3.5 to run. Please update your Python interpreter.\n') | 776 | status.addresult('The system requires at least Python 3.6 to run. Please update your Python interpreter.\n') |
777 | 777 | ||
778 | # Check the bitbake version meets minimum requirements | 778 | # Check the bitbake version meets minimum requirements |
779 | from distutils.version import LooseVersion | 779 | from distutils.version import LooseVersion |