broken by jhbuild commit 76f1a8b2 "Make sure we are running under Python 3"
A week ago, this commit has landed on jhbuild master: jhbuild@76f1a8b2
It breaks my gPodder builds with the error message
Traceback (most recent call last):
File "/Users/distiller/project/_home/.new_local/libexec/run_jhbuild.py", line 10, in <module>
import jhbuild
File "/Users/distiller/project/_home/Source/jhbuild/jhbuild/__init__.py", line 22, in <module>
assert sys.version_info[0] == 3, "JHBuild requires Python 3"
AssertionError: JHBuild requires Python 3
Generated libexec/run_jhbuild.py
is indeed using /usr/bin/python
which is apple's 2.7.
Modifying it to use /usr/bin/env python
, I encounter python 3 incompatibilities in
-
run_jhbuild.py
: usebuiltins
instead of__builtin__
- .jhbuildrc
- invalid syntax https://gitlab.gnome.org/GNOME/gtk-osx/-/blob/master/jhbuildrc-gtk-osx#L41
should be
raise RuntimeError("Failed to close %s stream" % cmd_arg)
- use
print()
function
- invalid syntax https://gitlab.gnome.org/GNOME/gtk-osx/-/blob/master/jhbuildrc-gtk-osx#L41
should be
Would you like to move to python3?
Or could you checkout a known-working version of jhbuild instead of master?
Thanks,