From 195708a41efcf498f8250cfb8b37895b568d99b6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Feb 2017 19:39:49 +0100 Subject: Install Python bindings when configured without tests --- NEWS | 3 ++- wscript | 15 ++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index 52b4891..57d54c0 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,9 @@ lilv (0.24.3) unstable; * Remove use of deprecated readdir_r + * Install Python bindings when built without tests - -- David Robillard Sun, 12 Feb 2017 17:49:05 +0100 + -- David Robillard Mon, 20 Feb 2017 19:38:44 +0100 lilv (0.24.2) stable; diff --git a/wscript b/wscript index e2a26cf..6050a95 100644 --- a/wscript +++ b/wscript @@ -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', -- cgit v1.2.1