building matplotlib without X-server connection

Hello, currently the GTK backends for matplotlib won't

    > build without an X-server connection. The following patch
    > fixes this:

    > It makes use of the fact the the import of gtk fails with
    > an RuntimeError instead of an ImportError when the module
    > is present but not X-server is there. Do you think that
    > this is safe to commit? Or will it have unwanted
    > side-effects?

    > I hope this helps, Jochen -- http://seehuhn.de/

Hi Jochen

This looks very good and will remove a pesky problem, so yes, plase
commit it. Can we build tk w/o an X11 connection. If memory serves,
there was an X requirement for tk..

JDH

Hello John,

···

On Thu, Nov 11, 2004 at 06:22:11AM -0600, John Hunter wrote:

This looks very good and will remove a pesky problem, so yes, plase
commit it. Can we build tk w/o an X11 connection. If memory serves,
there was an X requirement for tk..

My patch only fixes GTK and GtkAgg. I do not know much about tk,
but maybe a similar patch will help there?

All the best,
Jochen
--