]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity: correct Python version sanity check
authorRoss Burton <ross.burton@intel.com>
Wed, 20 Sep 2017 12:43:50 +0000 (13:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Sep 2017 16:14:42 +0000 (17:14 +0100)
We now require Python 3.4, not 2.7.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sanity.bbclass

index 5699287a4a2bc7c7bcaca0bfdb000283a8d501c7..91b92ec28a8dfc6a84d50694e3fd2284c49de37c 100644 (file)
@@ -702,10 +702,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 2.7.3
+    # Check the Python version, we now have a minimum of Python 3.4
     import sys
-    if sys.hexversion < 0x020703F0:
-        status.addresult('The system requires at least Python 2.7.3 to run. Please update your Python interpreter.\n')
+    if sys.hexversion < 0x03040000:
+        status.addresult('The system requires at least Python 3.4 to run. Please update your Python interpreter.\n')
 
     # Check the bitbake version meets minimum requirements
     from distutils.version import LooseVersion