On Jun 19, 2009, at 2:45 PM, Jonathan Guyer wrote:
However, I was building against a python 2.6 that I built from source. Where did you obtain the python you are using? I've run into these "missing required architecture" issues before and I'd like to narrow down the cause so we can avoid it or document the proper workarounds. In the meantime, please try: export MACOSX_UNIVERSAL_BUILD=0 or setenv MACOSX_UNIVERSAL_BUILD 0 depending on your shell (bash or (t)csh), and then attempt to build matplotlib again.
Nevermind. I thought this environment flag was general, but it only applies to mpi4py.
The problem is that python supplies a set of compiler flags for packages to build with and some versions of python on the mac stipulate "-arch ppc -arch i386" to indicate they should build for both old PowerPC machines and new Intel machines (i.e., "Universal"). The problem is that not all required libraries provide both architectures and the build can therefore fail. I've run into this with trying to build PyTrilinos. I don't know what the solution is other than to build a non-universal python, which isn't horrible, but things shouldn't be this hard.
