From: Joshua Lock Date: Tue, 8 Jun 2010 13:50:54 +0000 (+0100) Subject: sanity.bbclass: Check for Python 2.6 or newer X-Git-Tag: 2011-1~5914 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=6a9312ccccd744fd61e5fbb843093e236383c740;p=openembedded-core.git sanity.bbclass: Check for Python 2.6 or newer In relocatable.bbclass and utility-tasks.bbclass we depend on functionality that was only introduced with Pytrhon 2.6, so we now check that the build system has it in the sanity class. Signed-off-by: Joshua Lock --- diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 8ed8975edd..02fa6435c0 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -43,6 +43,12 @@ def check_sanity(e): messages = "" + # Check the Python version, we now use Python 2.6 features in + # various classes + import sys + if sys.hexversion < 0x020600F0: + messages = messages + 'Poky requires at least Python 2.6 to run. Please update your Python interpreter.\n' + if (LooseVersion(__version__) < LooseVersion(minversion)): messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, __version__)