swilena: Python 3 compatibility
I think the SWIG-based Python bindings for Milena should be converted into a form that allows for both Python 2 and 3. This can be done easily but clumsily with futurize -0
(from PyPI) on the resulting Python files. But maybe SWIG itself can do better? (It does have an -py3
option.) Or do we need a build configuration for both dialects independently?
Regardless, Python 3 bindings will only work if in m4/pypath.m4
the python command line does not use the print
idiom (which is a statement in Python 2 but a function in Python 3), but sys.stdout.write()
(as in the preconfigured autoconf rules).
Besides, having just taken notice of Pylene, am I correct in assuming the latter would get its Python bindings via pybind11
? And does that mean for Olena that Python bindings will be removed there? How about Scribo then, can this be built on top of Pylene, too?