Follow-up to r1875742:
* build/generator/gen_make.py: Tweak SWIG_PY_OPTS for Python 3 support.
Suggested by: futatuki
@@ -511,7 +511,7 @@ class Generator(gen_base.GeneratorBase):
standalone.write('top_srcdir = .\n')
standalone.write('top_builddir = .\n')
standalone.write('SWIG = swig\n')
- standalone.write('SWIG_PY_OPTS = -python\n')
+ standalone.write('SWIG_PY_OPTS = -python -py3 -nofastunpack -modern\n')
standalone.write('PYTHON = ' + sys.executable + '\n')
standalone.write('\n')
standalone.write(open("build-outputs.mk","r").read())
