From 3395e180e1e5e6e34b4d5faecdb40f8252ca0ec8 Mon Sep 17 00:00:00 2001 From: Ben Newton Date: Wed, 26 Nov 2014 14:59:32 -0800 Subject: [PATCH] Bug 2013: pygccxml versions > 1.0.0 prepend a 'v' to version number --- bindings/python/wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/python/wscript b/bindings/python/wscript index 0f3fb7a30..2a001b1cb 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -255,6 +255,8 @@ int main () "import pygccxml; print pygccxml.__version__"], stdout=subprocess.PIPE).communicate()[0] pygccxml_version_str = out.strip() + # Bug 2013: pygccxml versions > 1.0.0 prepend a 'v' to version number + pygccxml_version_str = pygccxml_version_str.lstrip('v') pygccxml_version = tuple([int(x) for x in pygccxml_version_str.split('.')]) conf.msg('Checking for pygccxml version', pygccxml_version_str) if not (pygccxml_version >= REQUIRED_PYGCCXML_VERSION):