bindings/python/wscript
changeset 4457 1b45505f9a52
parent 4440 c47d51e4b286
child 4459 d65af64db144
--- 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