From: Christian T. <ti...@st...> - 2009-09-20 05:28:29
|
On 9/15/09 12:08 AM, Alain Borel wrote: ... > I'm trying to install psyco on an Intel-based Mac running OS X 10.6 Snow > Leopard. Since I couldn't find a binary package, I tried to build it > from source. This wouldn't work either with the raw source (stable or > Subversion) or through DarwinPorts: apparently the setup.py wants to > build it as a PPC-i386-x86_64 bundle, which fails due to lack of support > for 64-bit and non-Intel architecture. > > By manually running gcc with all required options except the offending > -arch ppc and -arch x86_64, I finally succeeded in building the psyco > shared object, after which python setup.py install took care of copying > the file to the proper place. But the tests don't work: > You need a Python that is built for 32 bit. It usually works with the pre-installed Python, but that's also most probably only a 2.5. The easiest way is to build from Python's binary distribution, passing in the option to use 32 bit. This is what I use on Snow-Leopard: CC='cc -m32' ./configure MACOSX_DEPLOYMENT_TARGET=10.6 hope this helps -- chris -- Christian Tismer :^)<mailto:ti...@st...> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/ |