From 8059aaa6837eaea4443b45c1d6301bf1335f3d17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Sep 2016 15:22:52 -0400 Subject: Make Python test suite work without installing --- wscript | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index c816191..b8f84e7 100644 --- a/wscript +++ b/wscript @@ -350,6 +350,13 @@ def build(bld): autowaf.use_lib(bld, obj, 'SERD SORD SRATOM LV2') if bld.is_defined('LILV_PYTHON'): + # Copy Python bindings to build directory + bld(features = 'subst', + is_copy = True, + source = 'bindings/python/lilv.py', + target = 'lilv.py', + install_path = '${PYTHONDIR}') + # Copy Python unittest files for i in [ 'test_api.py' ]: bld(features = 'subst', @@ -410,10 +417,6 @@ def build(bld): bld.install_as( '${SYSCONFDIR}/bash_completion.d/lilv', 'utils/lilv.bash_completion') - if bld.is_defined('LILV_PYTHON'): - # Python Wrapper - bld.install_files('${PYTHONDIR}', 'bindings/python/lilv.py') - bld.add_post_fun(autowaf.run_ldconfig) if bld.env.DOCS: bld.add_post_fun(fix_docs) -- cgit v1.2.1