From 6a9312ccccd744fd61e5fbb843093e236383c740 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 8 Jun 2010 14:50:54 +0100 Subject: 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 --- meta/classes/sanity.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta') diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 8ed8975ed..02fa6435c 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__) -- cgit v1.2.3