Re: [Pythonmac-SIG] Wiki Formatting

2006-03-30 Thread Jordan Mantha
Christopher Barker wrote:
> Hi all,
> 
> I've been working on a new Wiki page for info about packages on the new 
> Universal build:
> 
> http://pythonmac.org/wiki/UniversalPackages
> 
> Something is up with the formatting:
> 
> I have both:
> 
> === A heading ===
> 
> = A less important heading =
> 
> But they both look the same.
> 
> Am I doing something wrong?
> 

I think you want is:

= A Heading =

== A less important heading ==

BTW, I'm pretty excited about that wiki page. I recently got my first
Mac (17" Intel iMac) and have had a lot of difficulties with the apps on
that wiki page (I a few data analysis scripts using SciPy). It seemed
like anything using Fortran was doomed to failure. I finally got Numpy
and Scipy (from SVN) installed using gfortran (gfortran-intel-bin.tar.gz
from http://hpc.sourceforge.net/) and the  Universal MacPython 2.4.3c1
build from Ronald Oussoren. I followed the directions at
http://www.scipy.org/Installing_SciPy/Mac_OS_X . I can update the wiki
page when I get a chance.

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


Re: [Pythonmac-SIG] 2.4.3 Python Universal Binary Pystone Comparison

2006-04-06 Thread Jordan Mantha
And here is mine on a 1.83GHz 17" Intel iMac:$ python -VPython 2.4.3$ python -c "from test.pystone import pystones; print pystones()"(1.99, 25125.628140703517)-Jordan ManthaOn Apr 6, 2006, at 2:36 PM, Ted Leung wrote:FWIW here are 3 runs from 1.83GHz MacBook Pro[sprout:2132]> /Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from test.pystone import pystones; print pystones()"(2.0405, 24509.803921568622)=== 2006-04-06 14:35[sprout:2132]> /Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from test.pystone import pystones; print pystones()"(2.0298, 24630.541871921185)=== 2006-04-06 14:35[sprout:2132]> /Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from test.pystone import pystones; print pystones()"(2.0805, 24038.461538461532)TedOn Apr 6, 2006, at 1:39 PM, Shane Holloway (IEEE) wrote:I was just wondering if anyone else had compared pystones on their box?  I downloaded the latest Universal Build from the python.org and found things to be a bit sluggish.  So I ran the pystones test to quickly gauge things, and noticed that things are indeed running about 1/3 of what they should be.  (Specific info from the Terminal below.)  Anyone have ideas?  They both appear to be built from GCC 4.0.  Let me know what other information you need from me.Also, are there build instructions for creating the Universal Packaging?Thanks,-Shane HollowayFrom the Universal Build installed python::[EMAIL PROTECTED] ~% /Library/Frameworks/Python.framework/Versions/2.4/bin/python -VPython 2.4.3[EMAIL PROTECTED] ~% /Library/Frameworks/Python.framework/Versions/2.4/bin/python -c "from test.pystone import pystones; print pystones()"(3.79, 13192.612137203167)From the release24-maint branch built on my box::[EMAIL PROTECTED] python/py-24% svn infoPath: .URL: http://svn.python.org/projects/python/branches/release24-maintRepository UUID: 6015fed2-1504-0410-9fe1-9d1591cc4771Revision: 43662Node Kind: directorySchedule: normalLast Changed Author: martin.v.loewisLast Changed Rev: 43618Last Changed Date: 2006-04-04 00:08:17 -0600 (Tue, 04 Apr 2006)Properties Last Updated: 2006-04-03 14:39:26 -0600 (Mon, 03 Apr 2006)[EMAIL PROTECTED] python/py-24% ./python.exe -VPython 2.4.4c0[EMAIL PROTECTED] python/py-24% ./python.exe -c "from test.pystone import pystones; print pystones()"(1.5798, 31645.569620253169)  ___Pythonmac-SIG maillist  -  Pythonmac-SIG@python.orghttp://mail.python.org/mailman/listinfo/pythonmac-sig  Ted Leung                          Blog: This message is:  [ ] bloggable   [x] ask first    [ ] private ___Pythonmac-SIG maillist  -  Pythonmac-SIG@python.orghttp://mail.python.org/mailman/listinfo/pythonmac-sig ___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Python Universal packages- how can I help

2006-04-07 Thread Jordan Mantha
Hi all!
Ok, so I recently got my first mac, an Intel iMac (17") for work.  
So far I have been totally impressed. I really enjoy OSX and starting  
to get into Python more.  However, I'm starting to feel bad that I  
have this thing and I'm not helping with testing/building Universal  
packages for other people to enjoy. I'm particularly interested in  
scientific python packages (scipy and friends, matplotlib, pyx, etc.)  
and wxpython. Is there a general place to find tutorials or something  
on creating Universal python packages? I'd like to help fill in  
http://pythonmac.org/wiki/UniversalPackages if I can. How would I go  
about doing that?

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


Re: [Pythonmac-SIG] Python Universal packages- how can I help

2006-04-07 Thread Jordan Mantha
Bob Ippolito wrote:
> 
> On Apr 7, 2006, at 5:25 PM, Jordan Mantha wrote:
> 
>> Ok, so I recently got my first mac, an Intel iMac (17") for work.
>> So far I have been totally impressed. I really enjoy OSX and starting
>> to get into Python more.  However, I'm starting to feel bad that I
>> have this thing and I'm not helping with testing/building Universal
>> packages for other people to enjoy. I'm particularly interested in
>> scientific python packages (scipy and friends, matplotlib, pyx, etc.)
>> and wxpython. Is there a general place to find tutorials or something
>> on creating Universal python packages? I'd like to help fill in
>> http://pythonmac.org/wiki/UniversalPackages if I can. How would I go
>> about doing that?
> 
> The packages on that list are "unfriendly" in that they will not
> trivially compile universally.  Getting those packages up to universal
> snuff is probably best left for the people who are already familiar with
> the peculiarities of those packages and the nuances of OS X porting and
> universal binaries.  Most other packages should compile trivially out of
> the box.
> 
> However, if you have a LOT of free time on your hands and you're
> interested in the ugly details you'll want to read up on:
> 1. the lipo command
> 2. the -arch and -isysroot flags to cc
> 2. the -syslibroot and -arch flags to ld.
> 
> The universal build ships with a Makefile that tells distutils what to
> do, but anything with external dependencies will need those dependencies
> compiled by hand with custom environment variables to produce a
> universal static or dynamic library out of them.  Sometimes it's
> trivial, other times not (especially if it does something stupid like
> endian or CPU detection at ./configure time) and you may have to compile
> PPC then i386 and lipo the result together (which may require a separate
> machine for each architecture).
>

Thanks for the info. I'll try to check those points. The universal
builds sound a bit scary, which is probably the reason they aren't all
over the place. I would assume creating Intel-only packages is easier,
is that right? Can bdist_mpkg (and py2app for that matter) be used on
Intel macs with the Universal Python 2.4.3 build? I'd like to learn how
to use bdist_mpkg and py2app. I'm having a bit of trouble figuring where
various packages are when it comes to Intel compatibility. Would making
.mpkgs be a more realistic goal? Sorry if my questions are seeming
silly. I'm used to building from source for myself and Linux packaging.

-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-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