Re: [hatari-devel] Re: Make building the Python GTK+3 user interface conditional. (PR #21)

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sun, 31 Jul 2022 01:48:29 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi,
> 
> On 30.7.2022 9.28, Thomas Huth wrote:
> > could you please have a look at the PR below, please?  
> 
> I checked the patch.
> 
> > Sounds basically ok to me, but wouldn't it be better to probe for the
> > python package instead of introducing a user-selectable switch in the CMake
> > file?  
> 
> I completely agree.
> 
> There should be CMake test that checks whether this works instead:
> ------------
> #!/usr/bin/python3
> import gi
> # use correct version of gtk
> gi.require_version('Gtk', '3.0')
> from gi.repository import Gtk
> from gi.repository import Gdk
> from gi.repository import GdkPixbuf
> from gi.repository import GLib
> ------------
> (code taken from dialogs.py)

Thanks! ... it was a little bit tricky to get the Python-code into
CMakeLists.txt, but I think I've now found a way to do it:

  https://git.tuxfamily.org/hatari/hatari.git/commit/?id=7464d784485142

Let me know if it does not work as expected.

 Thomas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/