diff options
author | David Robillard <d@drobilla.net> | 2017-02-20 19:39:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-02-20 19:39:49 +0100 |
commit | 195708a41efcf498f8250cfb8b37895b568d99b6 (patch) | |
tree | e2adaa7e398d6133ec1331628cf0fb3e4cca2fb2 /wscript | |
parent | 346e24c9a14fe914e8a993b4f22fd0ba886f29ca (diff) | |
download | lilv-195708a41efcf498f8250cfb8b37895b568d99b6.tar.gz lilv-195708a41efcf498f8250cfb8b37895b568d99b6.tar.bz2 lilv-195708a41efcf498f8250cfb8b37895b568d99b6.zip |
Install Python bindings when configured without tests
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -262,6 +262,14 @@ def build(bld): defines = defines + ['LILV_INTERNAL']) autowaf.use_lib(bld, obj, 'SERD SORD SRATOM LV2') + # Python bindings + if bld.is_defined('LILV_PYTHON'): + bld(features = 'subst', + is_copy = True, + source = 'bindings/python/lilv.py', + target = 'lilv.py', + install_path = '${PYTHONDIR}') + if bld.env.BUILD_TESTS: test_libs = lib test_cflags = [''] @@ -350,13 +358,6 @@ 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', |