Fix for SWIG 4.0.0

This commit is contained in:
Mark 2019-05-09 09:53:46 +02:00 committed by Wayne Stambaugh
parent 7da2631b27
commit 5685174808
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ if (len(lines)<4000):
txt = b""
for l in lines:
if l.startswith(b"if _swig_python_version_info < (2, 7, 0):"): # ok with swig version >= 4.0.0
l = l.replace(b"_swig_python_version_info < (2, 7, 0)", b"False")
doneOk = True
if l.startswith(b"if _swig_python_version_info >= (2, 7, 0):"): # ok with swig version >= 3.0.10
l = l.replace(b"_swig_python_version_info >= (2, 7, 0)", b"False")
doneOk = True