On Jan 9, 2008 10:35 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > > On Wednesday 09 January 2008 10:15:54 am Francesco Pretto wrote: > > 2008/1/9, Darren Dale <[EMAIL PROTECTED]>: > > > setup.py attempts to select the appropriate backend for you, based on > > > what backends were available at build time. That selection is written > > > into the default matplotlibrc file, which resides in > > > site-packages/matplotlib/mpl-data. If matplotlib finds another > > > matplotlibrc file (for example, in the current working directory, in > > > $HOME/.matplotlib, etc), then it will use those settings instead. I would > > > guess that is the source of the problem. > > > > No, the problem is the default installed matplotlibrc, that is not > > different from the one present in the source tree and has the default > > selection: > > > > backend : TkAgg > > > > Now, i don't know if the build script is trying to modify it according > > user selection or compile-time backend detection, but I'm wondering > > why the same problem wasn't happening on linux, where I tipically > > never install Tk runtime. > > > > However, for me the problem is solved, but if there's a matplotlib > > windows dev listening, here is my experience; first, i removed the > > already installed "lib/site-packages/matplotlib/mpl-data/matplotlibrc" > > . Afer, I went for clean compiling with a setup.cfg with these > > configurations: > > > > gtk = True > > gtkagg = False > > tkagg = False > > wxagg = False > > backend = GTK > > > > Eventually, "python setup.py install" write again a > > "site-packages/matplotlib/mpl-data/matplotlibrc" which still have: > > > > backend : TkAgg > > > > If this shouldn't happen, well, consider this a bug report :D > > Oh, I see. Look at line 238 in setup.py. Maybe we don't need that check for > sys.platform anymore, now that we have setup.cfg. I think that check was in > there for the benefit of building the windows installers, which we wanted to > default to tkagg. > > I think it would be best to use a setup.cfg to set the numerix and backends > when building the windows installers. Charlie, does that sound alright?
That's fine. I didn't use setup.cfg for the latest binaries though. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users