I\'m trying to install PIL on an Intel Mac OS X Leopard machine. Unfortunately, \"setup.py build\" thinks it should be compiling for ppc.
gcc -arch ppc -arch i3
The solution that worked for me was:
ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build
Just pass the values for the flag right in the command line.