aboutsummaryrefslogtreecommitdiffstats
path: root/waflib/extras/swig.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:03 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commitada3add535204d69b5f29a41fe03ed71330d4cfd (patch)
tree7baaf187de01c826dea239094c2d9d4007e6459e /waflib/extras/swig.py
parent72741e7bc14a1b3286d2b545426387e874c10c68 (diff)
parent69deb1ab7f622d04e9f1ef132cf3577abf9053a0 (diff)
downloadjalv-ada3add535204d69b5f29a41fe03ed71330d4cfd.tar.gz
jalv-ada3add535204d69b5f29a41fe03ed71330d4cfd.tar.bz2
jalv-ada3add535204d69b5f29a41fe03ed71330d4cfd.zip
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/extras/swig.py')
-rw-r--r--waflib/extras/swig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/waflib/extras/swig.py b/waflib/extras/swig.py
index fd3d6d2..740ab46 100644
--- a/waflib/extras/swig.py
+++ b/waflib/extras/swig.py
@@ -17,10 +17,10 @@ tasks have to be added dynamically:
SWIG_EXTS = ['.swig', '.i']
-re_module = re.compile('%module(?:\s*\(.*\))?\s+(.+)', re.M)
+re_module = re.compile(r'%module(?:\s*\(.*\))?\s+(.+)', re.M)
re_1 = re.compile(r'^%module.*?\s+([\w]+)\s*?$', re.M)
-re_2 = re.compile('[#%]include [<"](.*)[">]', re.M)
+re_2 = re.compile(r'[#%](?:include|import(?:\(module=".*"\))+|python(?:begin|code)) [<"](.*)[">]', re.M)
class swig(Task.Task):
color = 'BLUE'