On Fri, Sep 2, 2011 at 2:16 PM, Eric Firing <efir...@hawaii.edu> wrote:

> On 09/02/2011 08:54 AM, Eric Firing wrote:
>
> > Now I see it: all the other backends are simply setting constants in
> > their cursord, so they are not calling the functions that create the
> > cursors until runtime; backend_gtk is calling the functions at import
> > time.  This is a design deficiency that will be easy to fix, and will
> > help prevent quite a few problems (including problems I have run into
> > myself).
> >
> > I will take care of it today or tomorrow.
> >
> > Eric
>
> I was too optimistic.  Moving the cursor creation to runtime is easy,
> but it triggers an avalanche of warnings and errors, sometimes ending in
> a segfault, if one tries to plot anything when there is no X display.
> Better to leave it the way it is, failing at import.
>
> Eric
>
>
That's too bad.  Actually, a better, more generic solution would be if there
was some way for sphinx to create documentation without actually performing
an import.  This would be valuable for backends like cocoaagg and macosx
backends as those two require PyObjC which (AFAICT) can't be installed on a
non-mac system.

Anyway, I had some free time and did some grunt-work.  Please see my branch
here:

https://github.com/WeatherGod/matplotlib/compare/docfix%2Fbackends

The entires in the TOCs probably need some smarter reorganizatiion (fltkagg
got added to the wrong place...), and I didn't try building these docs in a
headless environment, so I don't know which ones would fail in that
situation.

Cheers!
Ben Root
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to