diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:04 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | 045e70df64bc881c2d1dc55028407117abd03099 (patch) | |
tree | 791b8e4d4bb680e938beb3a877e08c58f21dc3b8 /waflib/extras/swig.py | |
parent | 86f05e18c1e708fd0f72f3668f1e7446dbb4c69d (diff) | |
parent | ffe3509181a565237f8bb5930ba3f37bfe721fb9 (diff) | |
download | raul-045e70df64bc881c2d1dc55028407117abd03099.tar.gz raul-045e70df64bc881c2d1dc55028407117abd03099.tar.bz2 raul-045e70df64bc881c2d1dc55028407117abd03099.zip |
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/extras/swig.py')
-rw-r--r-- | waflib/extras/swig.py | 4 |
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' |