From c681150e819a707906950e2a83d42978fe30c127 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Wed, 11 Apr 2018 13:46:07 -0700 Subject: [PATCH] build: (fixes #2908) Check if pybindgen version exists before use --- bindings/python/wscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindings/python/wscript b/bindings/python/wscript index d081e51a6..72ad52208 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -195,6 +195,11 @@ 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: + Logs.warn("pybindgen_version is an empty string") + conf.report_optional_feature("python", "Python Bindings", False, + "PyBindGen version not found") + return if not (split_version(pybindgen_version) >= split_version(REQUIRED_PYBINDGEN_VERSION)): Logs.warn("pybindgen (found %r), (need %r)" % (pybindgen_version, REQUIRED_PYBINDGEN_VERSION))