Bug 2013: pygccxml versions > 1.0.0 prepend a 'v' to version number
authorBen Newton <bn@cs.unc.edu>
Wed, 26 Nov 2014 14:59:32 -0800
changeset 11074 ff5ee93352fe
parent 11073 ea9a2f4eba05
child 11075 a8944bb3dfd8
Bug 2013: pygccxml versions > 1.0.0 prepend a 'v' to version number
bindings/python/wscript
--- a/bindings/python/wscript	Wed Nov 26 14:56:17 2014 -0800
+++ b/bindings/python/wscript	Wed Nov 26 14:59:32 2014 -0800
@@ -255,6 +255,8 @@
                             "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):