[Pythonmac-SIG] Psycho & 2.4.3 universal
Jordan Mantha
mantha at chem.unr.edu
Thu Apr 20 20:29:55 CEST 2006
On Apr 19, 2006, at 12:01 PM, Ronald Oussoren wrote:
> On 19-apr-2006, at 0:11, Jacob Rus wrote:
>> I wrote:
>>> I couldn't compile [psyco][1] using the 2.4.3 universal version of
>>> Python on my 12" powerbook. I'm wondering if this is just a problem
>>> with universal Python, or if psycho doesn't compile in general
>>> under OS X.
>>
>> Argh, never mind that message. I see now that psyco is clearly
>> labeled
>> as only working on i386. Nothing to see here, move along.
>
> There is someone to see for those users fortunate enough to own an
> intel mac :-)
> It should be possible to compile psyco if you add '-arch i386' to the
> extra_compile_args
> and extra_link_args in the setup.py for psyco.
I just got the psyco svn checkout and ran "sudo python setup.py
install". I wasn't sure what to use as a test so I just used pystones.
No Psyco
python -c "from test.pystone import pystones; print pystones()"
(1.1899999999999999, 42016.806722689078)
python -c "from test.pystone import pystones; print pystones(100000)"
(2.4100000000000001, 41493.775933609955)
With Psyco
python -c "from test.pystone import pystones; import psyco; psyco.full
(); print pystones()"
(0.22, 227272.72727272726)
python -c "from test.pystone import pystones; import psyco; psyco.full
(); print pystones(100000)"
(0.42999999999999999, 232558.13953488372)
I repeated each test a couple times. Looks like psyco works.
-Jordan Mantha
More information about the Pythonmac-SIG
mailing list