1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

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>
This commit is contained in:
Ross Burton
2017-09-20 13:43:50 +01:00
committed by Richard Purdie
parent eac8a5cf42
commit 4b560c9834
+3 -3
View 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