build: Honor "--disable-python" and disable PyNDN "compilation"/installation
Refs #1041 (http://redmine.named-data.net/issues/1041)
diff --git a/wscript b/wscript
index 203ba0f..0301b35 100644
--- a/wscript
+++ b/wscript
@@ -221,15 +221,16 @@
bld.ns3_python_bindings()
- if bld.env['PyNDN_install_path']:
- bld (features = "py",
- source = bld.path.ant_glob (["PyNDN/**/*.py"]),
- install_from = "PyNDN",
- install_path = bld.env['PyNDN_install_path'])
- else:
- bld (features = "py",
- source = bld.path.ant_glob (["PyNDN/**/*.py"]),
- install_from = ".")
+ if bld.env['ENABLE_PYTHON_BINDINGS']:
+ if bld.env['PyNDN_install_path']:
+ bld (features = "py",
+ source = bld.path.ant_glob (["PyNDN/**/*.py"]),
+ install_from = "PyNDN",
+ install_path = bld.env['PyNDN_install_path'])
+ else:
+ bld (features = "py",
+ source = bld.path.ant_glob (["PyNDN/**/*.py"]),
+ install_from = ".")
@TaskGen.feature('ns3fullmoduleheaders')
@TaskGen.after_method('process_rule')