[Distutils] numpy build fails in distutils code

Ronald Oussoren ronaldoussoren at mac.com
Mon Oct 16 15:23:40 CEST 2006

On Monday, October 16, 2006, at 03:11PM, Jay Parlar <parlar at gmail.com> wrote:

>> On Oct 14, 2006, at 6:27 PM, Robert Kern wrote:
>> Actually it is a problem in disutils, one that is AFAIK fixed in
>> 2.4.4c1 (and the same patch is in the 2.5 branch and on the trunk).
>> What happens is that the binary release of Python for OSX is built as
>> a universal binary and uses compiler flags that the compiler
>> toolchain on OSX 10.3.9 doesn't understand. Distutils tries to remove
>> those flags on 10.3.9, but I forgot a number of settings that need to
>> be cleaned up.
>Perfect, that's what I suspected was happening. I'll just wait for
>2.5.1 then. Thanks a lot!

You can also edit /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Makefile. Remove '-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX.10.4u.sdk' from both the BASECFLAGS and LDFLAGS. 


P.S. I typed those arguments, the actual arguments might be slightly different.

>Jay P.
>Distutils-SIG maillist  -  Distutils-SIG at python.org

More information about the Distutils-SIG mailing list