[Distutils] cross-compiling with distutils?

Hollis Blanchard hollisb at us.ibm.com
Tue May 16 00:02:46 CEST 2006

Hi, I have a python module that uses distutils. I'm trying to build it
on an x86 system for a PPC host. Through much digging, I've found that I
can override CC to use my cross-compiler, but somehow it still wants to
use CFLAGS like -march=i386. Also, the output directory is still

I have seen a fair amount of python cross-compiling pain on the net, but
few answers. Any help?


Hollis Blanchard
IBM Linux Technology Center

More information about the Distutils-SIG mailing list