diff --git a/RELEASE_NOTES b/RELEASE_NOTES index c6a4fb329..03053479c 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -47,6 +47,7 @@ Bugs fixed - Bug 2547 - dead assignments on various tcp congestion controls - Bug 2551 - wifi preamble should be part of TXVECTOR - Bug 2552 - Remove code duplication between Yans and Spectrum +- Bug 2563 - Modify pybindgen version check to >= minimum version required Known issues ------------ diff --git a/bindings/python/wscript b/bindings/python/wscript index f0a574783..39479fd2b 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -67,6 +67,11 @@ def options(opt): dest='no32bit_scan') +def split_version(version): + ver = re.split('[.+]', version)[:4] + return (int(ver[0]), int(ver[1]), int(ver[2]), int(ver[3].split('post')[1])) + + def configure(conf): conf.env['ENABLE_PYTHON_BINDINGS'] = False if Options.options.python_disable: @@ -183,7 +188,7 @@ def configure(conf): stdout=subprocess.PIPE).communicate()[0] pybindgen_version = maybe_decode(out.strip()) conf.msg('Checking for pybindgen version', pybindgen_version) - if not (pybindgen_version == REQUIRED_PYBINDGEN_VERSION): + if not (split_version(pybindgen_version) >= split_version(REQUIRED_PYBINDGEN_VERSION)): Logs.warn("pybindgen (found %r), (need %r)" % (pybindgen_version, REQUIRED_PYBINDGEN_VERSION)) conf.report_optional_feature("python", "Python Bindings", False,