Problems compiling matplotlib under OS X

I'm attempting to compile matplotlib, and get messages

    >>>>> saying that it can't find the headers for Tcl/Tk. They
    >>>>> exist, they just happen to be in the Frameworks directories
    >>>>> for Tcl and for Tk. I know I can get this to work by hacking

I spent some time looking into how to get distutils to respect the
framework includes without much success, but then had the bright idea
to lift the darwin tk config section from PIL's The
modified (which matplotlib uses for config in is

Should work, provided you have zlib, png and freetype installed in a
place where matplotlib can find them. If you have more troubles,
please post again because you're not the only one with os x install
troubles and I would like to improve this.

JDH (12.3 KB)