# HG changeset patch # User Mathieu Lacage # Date 1243161581 -3600 # Node ID 1b45505f9a5267879be430d9c7d07d9839c44576 # Parent 1db0749fa7c6e1b43d88d16de72f571c60998da9 Don't allow pybindgen version greater than our requested version, to avoid python scanning generating backward incompatible API defs. diff -r 1db0749fa7c6 -r 1b45505f9a52 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