vendredi 30 mai 2008

dimanche 25 mai 2008

OS X 10.5 Leppard: "express" Python, PIL and WxPython please

Python on OS X 10.5...

It is not recommended to mess-up with the Python 2.5 installed by default, and while wanting to install PIL and WxPython, I discovered and lost myself in the jungle of Python "distros" and their prerequisites (Fink, MacPorts, DarwinPorts, AciveState, MacPython ...)

In a hurry? go to the source: python.org (MacPython)

1) search and install the universal installer for OS X:
http://www.python.org/download/

This new Python will be the default one when you invoke "Python" in a shell.
It's installed in "/Library/Frameworks/Python.framework"
(the original OS X python is in: "/System/Library/Frameworks/Python.framework").
The new libs are in "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages"

2) download and install PIL, WxPython (or other packages) from:
http://pythonmac.org/packages/py25-fat

More informations about MacPython:
http://wiki.python.org/moin/MacPython

An interesting read about the Python distributions (especially in a scientific context)