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 knows what's going on there have a look? I last rewrote the Tcl/Tk detection routines, but did not touch add_tk_flags(), which is definitely the grungy heart of this problem. On that function I am unfortunately as clueless as the rest. Jon wrote: > I thought you are expected to pick up the correct include directories from > the files tclConfig.sh and tkConfig.sh, which are found in the lib > directory returned from your query_tcltk function? In response to Jon's comment: Many systems have broken t*Config.sh scripts, for example way back on cygwin. My current Mac OS X 10.4.11 installation has the following in tkConfig.sh: TK_PREFIX='/Users/andreask/dbn/lba/night/builds/macosx-ix86/out' Mmmm. So exclusive use of these files are also not an option... We need to deduce the include dir from the library dir returned by the tk.getvar() or tcl.getvar() calls in some robust(?) way. Regards, Ludwig ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel