Hi, This patch reminded me to ask why the builtin libpng, zlib and libfreetype on Mac OS 10.5 and later are not used to build Matplotlib, removing the need to download these extra libraries. I was pleased to discover that Snow Leopard shipped with libpng and libfreetype as part of X11, only to find that even my old Leopard installation had them. I've been successfully building Matplotlib against them on both platforms. Besides skipping the download step, these libraries have the advantage of being correct universal binaries, eliminating another potential stumbling block. The only problem would be if these libraries were outdated, but I haven't come across any problems yet.
For the record, I set the following environment variables in ~/.profile on Snow Leopard: # These compiler flags ensure 32-bit + 64-bit code generation, as Snow Leopard produces 64-bit code by default export MACOSX_DEPLOYMENT_TARGET=10.6 export CFLAGS="-arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk" export LDFLAGS="-arch i386 -arch x86_64 -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" export FFLAGS="-m32 -m64" I then build a Matplotlib egg with: CFLAGS=${CFLAGS}" -I/usr/X11/include -I/usr/X11/include/freetype2" LDFLAGS=${LDFLAGS}" -L/usr/X11/lib" python setupegg.py bdist_egg I've been meaning to publish my installation instructions for numpy/scipy/matplotlib/ipython on Snow Leopard somewhere for quite a while, but that will have to wait for another day... I've tried to trim down my installation procedure to the minimum steps that will guarantee a working system without introducing extra libraries / Pythons / etc, so there might be some interest in it. Ludwig ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel