GNOME Bugzilla – Bug 797138
Meson build does not support Python 2
Last modified: 2018-09-26 13:20:59 UTC
Various projects like farstream still only support Python 2 so we need to support it too
Created attachment 373641 [details] [review] meson: Allow building with Python 2 Various projects like farstream still only support Python 2 so we need to support it too
(In reply to Jan Tojnar from comment #0) > Various projects like farstream still only support Python 2 so we need to > support it too Shouldn't these projects be ported to Python3 rather than dragging us back in time? Python2 is soon reaching end-of-life.
I'd also prefer to not add Python 2 support back. People who are stuck at Python 2 can always continue using older versions of gst-python if needed.
I agree that we should get rid of Python 3 as soon as possible but unfortunately the porting takes time. If we ignore Farstream (which apparently builds without gst-python), morituri (which can be replaced by whipper) and xpra (which supports Python 3 with some fiddling), at least one major dependent project has not been ported yet: https://github.com/mopidy/mopidy/issues/779 Since Autotools build still support Python 2, the change is minimal and Python 2 EOL not until 2020, it would be nice to support it just a little longer.
Farstream have no hand written bindings. The generated binding works fine in Python3. We should port the small set of examples, and drop the left over .m4 and configure checks. But this is to be filed to Farstream project. For the reference, the initial setup is the following (tested locally): $ python3 >> import gi >> gi.require_version('Gst', '1.0') >> gi.require_version('Farstream', '0.2') >> from gi.repository import Gst >> from gi.repository import Farstream >> Gst.init(None) ....
Additionally, the also switches to the python module instead of the python3 one that is getting deprecated (https://github.com/mesonbuild/meson/pull/4169).
Should this be closed based on comment#5?
Is this a duplicate of bug Bug #796092 ? (or other way round)
Yes, this is a duplicate. Not sure how I did not find it.Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 796092 ***