aboutsummaryrefslogtreecommitdiffstats
path: root/ext.wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-21 23:19:14 +0000
committerDavid Robillard <d@drobilla.net>2011-11-21 23:19:14 +0000
commit203af1c38b2840e8cb4248d5ae3773f5330d7195 (patch)
tree1e0c5ac800a9becdcb3e0de9b4d87c03754359e9 /ext.wscript
parentbd75bf8034d935aaeae81ac51124168f770071da (diff)
downloadlv2-203af1c38b2840e8cb4248d5ae3773f5330d7195.tar.xz
Gracefully deal with ancient Python lacking os.path.relpath.
Diffstat (limited to 'ext.wscript')
-rw-r--r--ext.wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext.wscript b/ext.wscript
index bfb3aad..b7af3f5 100644
--- a/ext.wscript
+++ b/ext.wscript
@@ -73,10 +73,13 @@ def should_build(ctx):
def configure(conf):
conf.env['EXPERIMENTAL'] = Options.options.experimental
-
if not should_build(conf):
return
+ if not hasattr(os.path, 'relpath') and not Options.options.copy_headers:
+ conf.fatal(
+ 'os.path.relpath missing, get Python 2.6 or use --copy-headers')
+
autowaf.configure(conf)
autowaf.display_header('LV2 %s Configuration' % info.NAME)
conf.env['COPY_HEADERS'] = Options.options.copy_headers