[oe-commits] Jesse Zhang : sanity.bbclass: make sure python is a full install
git at git.openembedded.org
git at git.openembedded.org
Tue Jun 4 10:38:23 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: bb027a332f2f2927a6bcbc4c035b42a012d0579e
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=bb027a332f2f2927a6bcbc4c035b42a012d0579e
Author: Jesse Zhang <sen.zhang at windriver.com>
Date: Mon Jun 3 07:37:48 2013 +0000
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]
Signed-off-by: Jesse Zhang <sen.zhang at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/sanity.bbclass | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 3b01acf..6cad4bc 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -387,6 +387,12 @@ def check_sanity(sanity_data):
import sys
if sys.hexversion < 0x020600F0:
messages = messages + 'The system requires at least Python 2.6 to run. Please update your Python interpreter.\n'
+ # Check the python install is complete. glib-2.0-natives requries
+ # xml.parsers.expat
+ try:
+ import xml.parsers.expat
+ except ImportError:
+ messages = messages + 'Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n'
if (LooseVersion(bb.__version__) < LooseVersion(minversion)):
messages = messages + 'Bitbake version %s is required and version %s was found\n' % (minversion, bb.__version__)
More information about the Openembedded-commits
mailing list