summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-05-13 21:16:21 +0000
committerDavid Robillard <d@drobilla.net>2015-05-13 21:16:21 +0000
commit9cf76f4805ba44cca83318364cf38d57b1ca4fae (patch)
treef8e77e9f43c019ffae96db725b267f5a650f31a5 /wscript
parente395dd6a115cd5ba9e98321f3ca4b262c4d0e52b (diff)
downloadlilv-9cf76f4805ba44cca83318364cf38d57b1ca4fae.tar.gz
lilv-9cf76f4805ba44cca83318364cf38d57b1ca4fae.tar.bz2
lilv-9cf76f4805ba44cca83318364cf38d57b1ca4fae.zip
Build py33 bindings if configured with py3.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5677 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index eef6e12..493f1cc 100644
--- a/wscript
+++ b/wscript
@@ -376,7 +376,8 @@ def build(bld):
source = 'bindings/lilv.i',
target = 'bindings/_lilv',
includes = ['..'],
- swig_flags = '-c++ -python -Wall -I.. -llilv -features autodoc=1',
+ swig_flags = '-c++ -python %s -Wall -I.. -llilv -features autodoc=1' %
+ ("-py3" if sys.version_info >= (3,0,0) else ""),
use = 'liblilv')
autowaf.use_lib(bld, obj, 'LILV')