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 Mon,  1 Aug 2022 18:12:21 +0000
schrieb Thomas Huth <th.huth@xxxxxxxxx>:

> 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.

.... aaaand of course it broke the CI:

 https://app.travis-ci.com/github/hatari/hatari/jobs/578410141

I missed to test the case without a valid Python 3 interpreter ... *sigh*.

 Thomas



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