summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-09-20 13:43:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-22 17:15:29 +0100
commit4b560c98345ebcbcb67fc032af08781f92e0454e (patch)
tree0535901e45adb60afc36d22f545fdbd5021da7af /meta
parenteac8a5cf4212feaf8baf230e9ae991939732141d (diff)
downloadpoky-4b560c98345ebcbcb67fc032af08781f92e0454e.tar.gz
sanity: correct Python version sanity check
We now require Python 3.4, not 2.7. (From OE-Core rev: b12d99dbfbee8c4b3680f453f833410950238bb9) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 5699287a4a..91b92ec28a 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -702,10 +702,10 @@ def check_sanity_everybuild(status, d):
702 if 0 == os.getuid(): 702 if 0 == os.getuid():
703 raise_sanity_error("Do not use Bitbake as root.", d) 703 raise_sanity_error("Do not use Bitbake as root.", d)
704 704
705 # Check the Python version, we now have a minimum of Python 2.7.3 705 # Check the Python version, we now have a minimum of Python 3.4
706 import sys 706 import sys
707 if sys.hexversion < 0x020703F0: 707 if sys.hexversion < 0x03040000:
708 status.addresult('The system requires at least Python 2.7.3 to run. Please update your Python interpreter.\n') 708 status.addresult('The system requires at least Python 3.4 to run. Please update your Python interpreter.\n')
709 709
710 # Check the bitbake version meets minimum requirements 710 # Check the bitbake version meets minimum requirements
711 from distutils.version import LooseVersion 711 from distutils.version import LooseVersion