diff options
author | David Robillard <d@drobilla.net> | 2011-11-21 23:19:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-21 23:19:14 +0000 |
commit | 203af1c38b2840e8cb4248d5ae3773f5330d7195 (patch) | |
tree | 1e0c5ac800a9becdcb3e0de9b4d87c03754359e9 /lv2 | |
parent | bd75bf8034d935aaeae81ac51124168f770071da (diff) | |
download | lv2-203af1c38b2840e8cb4248d5ae3773f5330d7195.tar.xz |
Gracefully deal with ancient Python lacking os.path.relpath.
Diffstat (limited to 'lv2')
-rw-r--r-- | lv2/ns/lv2core/wscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lv2/ns/lv2core/wscript b/lv2/ns/lv2core/wscript index a3533fd..f84e29a 100644 --- a/lv2/ns/lv2core/wscript +++ b/lv2/ns/lv2core/wscript @@ -27,6 +27,10 @@ def options(opt): help='Copy headers instead of linking to bundle') def configure(conf): + 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') + conf.load('compiler_c') autowaf.configure(conf) |