Bug 1200 - ./waf install doesn't install Python bindings properly
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 05 Jul 2011 19:16:47 +0100
changeset 7348 9372b57a6ce4
parent 7347 31429a6c723d
child 7349 30af4f227b21
Bug 1200 - ./waf install doesn't install Python bindings properly
bindings/python/wscript
src/wscript
--- a/bindings/python/wscript	Tue Jul 05 18:53:05 2011 +0100
+++ b/bindings/python/wscript	Tue Jul 05 19:16:47 2011 +0100
@@ -602,6 +602,7 @@
     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 env['ENABLE_PYTHON_BINDINGS'] and env['BINDINGS_TYPE'] in ('monolithic', 'both'):
--- a/src/wscript	Tue Jul 05 18:53:05 2011 +0100
+++ b/src/wscript	Tue Jul 05 19:16:47 2011 +0100
@@ -354,6 +354,7 @@
             pass
     pymod.env['CXXDEFINES'] = defines
     pymod.includes = 'bindings'
+    pymod.install_path = '${PYTHONDIR}/ns'
     return pymod