On 19 Oct, 2009, at 22:47, Chris Fonnesbeck wrote:

Is there any way of convincing setuptools to *not* build for PPC? For
some reason, it tries to build a universal binary by default:

g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/ MacOSX10.4u.sdk ...etc

Which results in errors:

ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/ Python.framework/Versions/4.3.0/lib/libz.dylib,
file is not of required architecture
ld: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/ Python.framework/Versions/4.3.0/lib/libz.1.dylib,
file is not of required architecture for architecture ppc

I have no interest in building universals -- how can I switch this
off? I already tried putting "-arch i386" in my LDFLAGS, but to no
avail.

Add ['-arch', 'i386'] to both extra_compile_args and extra_link args of the Extension objects.

BTW. The path's in the error-messages above are fishy, there shouldn't be a '4.3.0' version in Python.framework.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to