Don't allow pybindgen version greater than our requested version, to avoid python scanning generating backward incompatible API defs.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun, 24 May 2009 11:39:41 +0100
changeset 4457 1b45505f9a52
parent 4456 1db0749fa7c6
child 4458 f8b83f855f67
child 4536 dee7215f0334
Don't allow pybindgen version greater than our requested version, to avoid python scanning generating backward incompatible API defs.
bindings/python/wscript
--- a/bindings/python/wscript	Thu May 21 06:46:38 2009 -0700
+++ b/bindings/python/wscript	Sun May 24 11:39:41 2009 +0100
@@ -109,14 +109,14 @@
         pybindgen_version_str = out.strip()
         pybindgen_version = tuple([int(x) for x in pybindgen_version_str.split('.')])
         conf.check_message('pybindgen', 'version',
-                           (pybindgen_version >= REQUIRED_PYBINDGEN_VERSION),
+                           (pybindgen_version == REQUIRED_PYBINDGEN_VERSION),
                            pybindgen_version_str)
-        if not (pybindgen_version >= REQUIRED_PYBINDGEN_VERSION):
-            Logs.warn("pybindgen (found %s) is too old (need %s)" %
+        if not (pybindgen_version == REQUIRED_PYBINDGEN_VERSION):
+            Logs.warn("pybindgen (found %s), (need %s)" %
                     (pybindgen_version_str,
                      '.'.join([str(x) for x in REQUIRED_PYBINDGEN_VERSION])))
             conf.report_optional_feature("python", "Python Bindings", False,
-                                         "PyBindGen too old and newer version could not be retrieved")
+                                         "PyBindGen version not correct and newer version could not be retrieved")
             return
 
     ## If all has gone well, we finally enable the Python bindings