Issue 1462 - Swig file installation example

This commit is contained in:
Thomas Nagy 2014-09-20 11:19:19 +02:00
parent d246665be2
commit 7f2cc4ef42
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ def build(bld):
vnum = '1.2.3',
use = 'mylib')
bld.install_files('${PREFIX}/lib', 'extend/python/test_swig_waf.py')
python_site_package = '${PREFIX}/lib/python%s/site-packages' % bld.env.PYTHON_VERSION
bld.install_files(python_site_package, 'extend/python/test_swig_waf.py')
bld.install_files(python_site_package, 'embed/swigdemo.py')
bld.add_post_fun(exec_test_python)