summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-08 14:50:54 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-08 17:29:46 +0100
commit6a9312ccccd744fd61e5fbb843093e236383c740 (patch)
treebff6ccfee4c4a39e88829588eced4158b4a1b099
parent8f34dcfdbcfacb983d552c65ba43f5f2cf7427f9 (diff)
downloadopenembedded-core-6a9312ccccd744fd61e5fbb843093e236383c740.tar.gz
openembedded-core-6a9312ccccd744fd61e5fbb843093e236383c740.tar.bz2
openembedded-core-6a9312ccccd744fd61e5fbb843093e236383c740.zip
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 <josh@linux.intel.com>
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 6 insertions, 0 deletions
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__)