Re: [Pythonmac-SIG] Psycho & 2.4.3 universal

2006-04-20 Thread Jordan Mantha
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.1899, 42016.806722689078)
python -c "from test.pystone import pystones; print pystones(10)"
(2.4101, 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(10)"
(0.42999, 232558.13953488372)

I repeated each test a couple times. Looks like psyco works.

-Jordan Mantha
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Psycho & 2.4.3 universal

2006-04-19 Thread Ronald Oussoren

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.

Ronald

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Psycho & 2.4.3 universal

2006-04-19 Thread Christopher Barker
Jacob Rus wrote:
> Argh, never mind that message.  I see now that psyco is clearly labeled 
> as only working on i386.  Nothing to see here, move along.

It'd be nice to know how/if it works on an Intel Mac, however. Anyone?

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Psycho & 2.4.3 universal

2006-04-18 Thread Jacob Rus
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.

-Jacob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Psycho & 2.4.3 universal

2006-04-18 Thread Jacob Rus
Hi,

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.

Thanks for any help,
-Jacob

[1]: http://psyco.sourceforge.net/

Here's what the terminal output looked like:

$python setup.py build
PROCESSOR = 'ivm'
running build
running build_py
running build_ext
building 'psyco._psyco' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-fno-common -dynamic -DNDEBUG -g -O3 -DALL_STATIC=1 -Ic/ivm 
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c 
c/psyco.c -o build/temp.macosx-10.4-fat-2.4/c/psyco.o
In file included from c/initialize.h:46,
  from c/psyco.c:14:
c/dispatcher.c: In function ‘do_promotion_internal’:
c/dispatcher.c:1794: error: invalid lvalue in assignment
In file included from c/initialize.h:46,
  from c/psyco.c:14:
c/dispatcher.c: In function ‘do_promotion_internal’:
c/dispatcher.c:1794: error: invalid lvalue in assignment
In file included from c/initialize.h:48,
  from c/psyco.c:14:
c/psyfunc.c: In function ‘psyco_proxycode’:
c/psyfunc.c:633: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
In file included from c/initialize.h:48,
  from c/psyco.c:14:
c/psyfunc.c: In function ‘psyco_proxycode’:
c/psyfunc.c:633: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
lipo: can't figure out the architecture type of: /var/tmp//ccUTzkfB.out
error: command 'gcc' failed with exit status 1

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig