[avahi] pygtk
Sebastien Estienne
sebastien.estienne at gmail.com
Thu Aug 4 23:45:30 EST 2005
2005/8/4, Lennart Poettering <lennart at poettering.de>:
> On Thu, 04.08.05 09:13, Trent Lloyd (lathiat at bur.st) wrote:
>
> > Why does the build require the dev files for pygtk? afaict they arent
> > required as everything builds fine without it except the ./configure
> > whinges
> >
> > An alternate method of determining whatever it wants to know could be
> > better?
>
> Related to this:
>
> Sebastien, you broke my build! I have a server without python
> installed, in r217 I fixed the build to not require python. But now
> you broke it again.
>
> You replaced the following lines:
>
> AM_PATH_PYTHON(2.4, [HAVE_PYTHON=yes], [HAVE_PYTHON=no])
> AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = xyes ])
>
> (requires automake 1.9, sorry)
>
> with:
>
> AM_PATH_PYTHON(2.4)
> AM_PYTHON_CHECK_VERSION("$PYTHON", 2.4, [HAVE_PYTHON=yes], [HAVE_PYTHON=no])
> AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = xyes ])
>
I replaced it because this:
AM_PATH_PYTHON(2.4, [HAVE_PYTHON=yes], [HAVE_PYTHON=no])
didn't work on my pc, HAVE_PYTHON wasn't define, (no "yes or no" in the summary)
> Which is smotheing completely different.
>
> Please fix this ASAP! For the time being I disabled your pygtk stuff,
> because it even prevented my to buld avahi on my PC.
>
> I don't think that autoconf tests for pygtk/glade make any sense
> here. I like the way the bittorrent packages handle this: don't
> require pygtk/glade for build but print out a nice message when you
> run the tools that if you want to make use of the GUI you need to
> install pygtk. i.e. change avahi-discover to import pygtk like this:
>
> try:
> import gtk, gobject
> except ImportError, e:
> print "Sorry, you need to install pygtk to use this tool."
> sys.exit(2)
>
Oki i'll follow your advice, but i see a little problem with doing this:
what happen if the user starts avahi-discover from his "applications"
menu? he can't know what is wrong.
> BTW, I have another suggestion for you how to improve
> avahi-discover. Add another tree level for the network a service is
> found on, and drop the column showing this instead. An example:
>
> + Interface eth0 (IPv4)
> + Domain .local
> + Service Type _http._tcp
> + Web Service #1
> + Blah Blubb
> + Type _ftp._tcp
> + My FTP Server
> + Domain .home
> + Service Type _presence._tcp
> + Lieschen Müller
> + Peter Panther
> + Interface wlan0 (IPv4)
> + Domain .local
> + Service Type _http._tcp
> + Miau
> + Interface wlan0 (IPv6)
> + Domain .local
> + Service Type _gurki._tcp
> + Brrrumm!
>
> And expanding the entries in the tree view by default would be cool,
> too.
Oki, how can i make the link between the interface number and it's real name
eg 8 -> eth0 ?
>
> And finally: clicking on any of the entries doesn't reveal any
> information at the moment. This worked some revisions ago, but doesn't any more?
>
I modified avahi-discover.glade to add a signal, it probably means
that it's not pointing to the modified glade file (probably the old
one)
this line:
<signal name="cursor_changed" handler="on_tree_view_cursor_changed"
> BTW: I changed the Makefile.am in avahi-utils to replace @PYTHON@ and
> friends using sed instead of using autoconf. Somewhere in the autoconf
> they suggest that paths shouldn't be replaced by autoconf but only by
> make.
Yes, i posted something about this, and you are right.
>
> Thanks,
> Lennart
>
> --
> Lennart Poettering; lennart [at] poettering [dot] de
> ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>
--
Sebastien Estienne
More information about the avahi
mailing list