Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
Ludwig Schwardt wrote: > Hi, > > Fernando wrote: > >> The code for this path detection is obviously rather convoluted and >> brittle, since there seems to be no clear API provided by Tk for this >> information, unfortunately. >> > > Michael wrote: > >> I know the Tcl/Tk header lookup mec

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Ludwig Schwardt
Hi, Fernando wrote: > The code for this path detection is obviously rather convoluted and > brittle, since there seems to be no clear API provided by Tk for this > information, unfortunately. Michael wrote: > I know the Tcl/Tk header lookup mechanism is inherently complex. > Could someone who kno

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
I think I have a fix in for this now. As Jonathan Wright suggested, it parses tclConfig.sh and tkConfig.sh to find the include and lib directories. If any of that fails, it falls back to the old method (which is based on the assumption that the build and lib directories are relative to the tcl

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
Alas, PIL SVN head fails to build on Ubuntu 8.04 (without Ubuntu-specific patches) as well... Cheers, Mike John Hunter wrote: > On Tue, May 27, 2008 at 9:27 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > >> Thanks, Jonathan. The tclConfig.sh stuff was news to me (I didn't write >> the o

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread John Hunter
On Tue, May 27, 2008 at 9:27 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Thanks, Jonathan. The tclConfig.sh stuff was news to me (I didn't write > the original Tcl/Tk header finding stuff, though). > > Everyone else: I'm on this and will let you know how it goes. Just a reminder that a lo

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
Thanks, Jonathan. The tclConfig.sh stuff was news to me (I didn't write the original Tcl/Tk header finding stuff, though). Everyone else: I'm on this and will let you know how it goes. Cheers, Mike Jonathan Wright wrote: > Hi Mike, > > OK, I've just done the svn co of v0_91_maint and get the o

Re: [matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Jonathan Wright
Hi Mike, OK, I've just done the svn co of v0_91_maint and get the output here: BUILDING MATPLOTLIB matplotlib: 0.91.2svn python: 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC

[matplotlib-devel] Doesn't find Tcl/Tk headers on Ubuntu 8.04

2008-05-27 Thread Michael Droettboom
I'm moving this second question onto the matplotlib-devel list. It seems that a user is unable to build the tkagg extension from source on Ubuntu 8.04. I know the Tcl/Tk header lookup mechanism is inherently complex. Could someone who knows what's going on there have a look? Jonathan: Could y