summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJesse Zhang <sen.zhang@windriver.com>2013-06-03 07:37:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-04 11:43:35 +0100
commitc81ecf96edd36791842f3e30ef4a141da13e1685 (patch)
tree534fddafa3c3b57820a61a88dba0b644e023dd72 /meta
parente85876de1b1578925233533d8ab04222a95b2056 (diff)
downloadpoky-c81ecf96edd36791842f3e30ef4a141da13e1685.tar.gz
sanity.bbclass: make sure python is a full install
Components of the Standard Library should be available. Add a sanity check for xml.parsers.expat; we might add more in the future. [YOCTO #4424] (From OE-Core rev: bb027a332f2f2927a6bcbc4c035b42a012d0579e) Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 3b01acf56d..6cad4bc612 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -387,6 +387,12 @@ def check_sanity(sanity_data):
387 import sys 387 import sys
388 if sys.hexversion < 0x020600F0: 388 if sys.hexversion < 0x020600F0:
389 messages = messages + 'The system requires at least Python 2.6 to run. Please update your Python interpreter.\n' 389 messages = messages + 'The system requires at least Python 2.6 to run. Please update your Python interpreter.\n'
390 # Check the python install is complete. glib-2.0-natives requries
391 # xml.parsers.expat
392 try:
393 import xml.parsers.expat
394 except ImportError:
395 messages = messages + 'Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n'
390 396
391 if (LooseVersion(bb.__version__) < LooseVersion(minversion)): 397 if (LooseVersion(bb.__version__) < LooseVersion(minversion)):
392 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__) 398 messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__)