summaryrefslogtreecommitdiffstats
path: root/meta/classes
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 /meta/classes
parent8f34dcfdbcfacb983d552c65ba43f5f2cf7427f9 (diff)
downloadpoky-6a9312ccccd744fd61e5fbb843093e236383c740.tar.gz
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>
Diffstat (limited to 'meta/classes')
-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):
43 43
44 messages = "" 44 messages = ""
45 45
46 # Check the Python version, we now use Python 2.6 features in
47 # various classes
48 import sys
49 if sys.hexversion < 0x020600F0:
50 messages = messages + 'Poky requires at least Python 2.6 to run. Please update your Python interpreter.\n'
51
46 if (LooseVersion(__version__) < LooseVersion(minversion)): 52 if (LooseVersion(__version__) < LooseVersion(minversion)):
47 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, __version__) 53 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, __version__)
48 54