From 715d3e0d5af16683cce635255c5809eb24fd40d5 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Fri, 23 Sep 2011 12:19:53 +0100 Subject: [PATCH] Bug 1257 - waf install __init__ Python files even with --disable-python --- bindings/python/wscript | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/python/wscript b/bindings/python/wscript index af537894d..82b955b2e 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -428,11 +428,6 @@ def build(bld): set_pybindgen_pythonpath(env) - bld.new_task_gen(features='copy', - source="ns__init__.py", - target='ns/__init__.py') - bld.install_as('${PYTHONDIR}/ns/__init__.py', 'ns__init__.py') - if Options.options.apiscan: if not env['ENABLE_PYTHON_SCANNING']: raise Utils.WafError("Cannot re-scan python bindings: (py)gccxml not available") @@ -481,6 +476,12 @@ def build(bld): grp = bld.get_group(bld.current_group) grp.append(task) + bld.new_task_gen(features='copy', + source="ns__init__.py", + target='ns/__init__.py') + bld.install_as('${PYTHONDIR}/ns/__init__.py', 'ns__init__.py') + + # note: the actual build commands for the python bindings are in # src/wscript, not here.