summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript11
1 files changed, 7 insertions, 4 deletions
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)