Building Matplotlib on Ubuntu

Hi,
I experienced a problem when compiling matplotlib on Ubuntu 13.04. The setup determined that the freetype2 headers are not installed (although they are). The reason for this is a function in setupext.py script that searches for "ft2build.h" in the freetype2 include directories ("/usr/include/freetype2" and below), whereas the file resides in "/usr/include/ft2build.h". As a quick workaround, I linked /usr/include/ft2build.h to /usr/include/freetype2/ft2build.h and matplotlib compiled just fine.

I don't know it this has been caused by a change in the ubuntu package or by a modification in setupext.py though..