From be20acaee75b0348c080d2e0d02c09d19867f581 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Tue, 8 Mar 2011 15:02:28 +0000 Subject: [PATCH] Make ns3_python_bindings skip bindings with warning if apidefs dir not found --- src/wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wscript b/src/wscript index 7d644fe5a..c5c13248b 100644 --- a/src/wscript +++ b/src/wscript @@ -128,6 +128,12 @@ def ns3_python_bindings(bld): if env['BINDINGS_TYPE'] not in ('modular', 'both'): return + if not bld.path.find_dir("bindings"): + warnings.warn("(in %s) Requested to build modular python bindings, but apidefs dir not found " + "=> skipped the bindings." % str(bld.path), + Warning, stacklevel=2) + return + # this method is called from a module wscript, so remember bld.path is not bindings/python! module_abs_src_path = bld.path.abspath() module = os.path.basename(module_abs_src_path)