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 setup.py. The
modified setupext.py (which matplotlib uses for config in setup.py) is
attached.

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

setupext.py (12.3 KB)