[Pythonmac-SIG] Compiling Numeric for OSX-intel

Jeremy Gore jmgore75 at gmail.com
Wed Apr 26 15:35:34 CEST 2006


I posted earlier on building Numeric on a MacBook Pro with the latest  
Universal build of python, installed via pkg.  Similar problems have  
arisen with compiling other packages.  I believe distutils to be at  
fault.

The problem is the -lcc_dynamic flag invoked on gcc.  During the  
build process whenever it threw an error I went back and reinvoked  
gcc with that flag removed, and it compiled fine, then continued with  
setup.py build; after several fixes of this sort the job completed, I  
installed it, and everything appears to work as expected.  I'm not a  
distutils expert so I'm not sure where this flag is stored or what it  
means or how to prevent it being invoked.

I think somehow the python which I installed (from http:// 
pythonmac.org/packages/py24-fat/index.html) was compiled with this  
flag coded in, and it doesn't work on my MacBook.  Perhaps it's a  
matter of a different architecture or a different setup, I don't  
know.  I can't even find a cc_dynamic library file that it would link  
to.  The same thing happened whether or not /usr/local/lib/ 
libcc_dynamic.a is absent or is symlinked to /usr/lib/gcc/i686-apple- 
darwin8/4.0.1/libgcc.a.  But it doesn't seem to be necessary on my  
machine, and thus I think python2.4-fat should be altered to  
incorporate this.  It should be noted that I experienced similar  
problems with other packages besides Numeric.

Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20060426/5ce36206/attachment.htm 


More information about the Pythonmac-SIG mailing list