diff options
author | David Robillard <d@drobilla.net> | 2016-09-18 15:22:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-18 15:22:52 -0400 |
commit | 8059aaa6837eaea4443b45c1d6301bf1335f3d17 (patch) | |
tree | a0dcab91cd15a6b2a25879eeb8b4a4d36212f355 /wscript | |
parent | 6ff018665747cd10248ba020ba16ba973764eff6 (diff) | |
download | lilv-8059aaa6837eaea4443b45c1d6301bf1335f3d17.tar.gz lilv-8059aaa6837eaea4443b45c1d6301bf1335f3d17.tar.bz2 lilv-8059aaa6837eaea4443b45c1d6301bf1335f3d17.zip |
Make Python test suite work without installing
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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) |