GNOME Bugzilla – Bug 690962
port to python3
Last modified: 2015-12-02 01:00:40 UTC
See https://live.gnome.org/GnomeGoals/Python3Porting
Created attachment 232705 [details] [review] python3: use relative imports
Created attachment 232706 [details] [review] python3: misc function changes
Created attachment 232707 [details] [review] python3: exception changes
Created attachment 232708 [details] [review] python3: whitespace and comma cleanup
Created attachment 232709 [details] [review] python3: use print() function instead of print statement
Created attachment 232710 [details] [review] python3: list-related changes
Based on the result of 2to3. Luckily, these patches are all compatible with python 2.7. Tested with "PYTHON=python3 ./configure ... && make && make install".
that is great to hear; it now appears we'll have to stick with python 2.7 for f19, at least.
it seems we're going for a vala port instead ?
(In reply to comment #9) > it seems we're going for a vala port instead ? Thats what I understood from bug 688218. Shouldn't this bug being closed?
Sorry I reopened this, but in current master I can still see in the configure.ac: dnl == check for python == AM_PATH_PYTHON(2.4) and several python files are present in the tree: $ find -name *.py ./caribou/settings/preferences_window.py ./caribou/settings/setting_types.py ./caribou/settings/settings_manager.py ./caribou/settings/caribou_settings.py ./caribou/settings/__init__.py ./caribou/__init__.py ./caribou/antler/keyboard_view.py ./caribou/antler/__init__.py ./caribou/antler/antler_settings.py ./caribou/antler/main.py ./caribou/antler/window.py ./tools/convert_cldr.py ./tools/fix_gir.py ./tools/make_schema.py
Does that cause any error? Those python files are classified into: - only used at build time: tools/fix_gir.py, tools/make_schema.py - only used for testing purpose: tools/convert_cldr.py - only used by non-GNOME environment: caribou/* Given that all those files work with both python 3 and python 2, and AM_PATH_PYTHON takes the minimum version of the python interpreter, there shouldn't be a problem.
Javier, what problem were you seeing ?
I think I had problems building this with python3; I've checked again an everything is fine, closing again (sorry for the noise)
*** Bug 758490 has been marked as a duplicate of this bug. ***