Differences between revisions 1 and 2
Revision 1 as of 2008-02-07 21:01:47
Size: 2077
Editor: 156
Comment:
Revision 2 as of 2008-02-07 21:07:02
Size: 2079
Editor: 156
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
cd /Library/Frameworks cd /Library/Frameworks ;

Mac OS X 10.5.x (Leopard) comes with the 2.5.1 Python distribution pre-installed, with an integrated Python Launcher.app. As of this writing (7 Feb. 2008), this is the same as the current Python/MacPython stable release. So for the first time users may wish to avoid installing the pythonmac.org distribution and use the built-in python. However, the built-in python does not include IDLE.app or Build Applet.app, and the standard pythonmac.org distribution will not allow their installation without the installation of at least a complete, redundant Python.framework.

Some people have legitimate reasons for wanting to install IDLE on Leopard. E.g., even though Leopard's Xcode 3.0 supports Python development, it does so in a heavyweight, support-all-of-Cocoa fashion. And educators teaching Python who wish to do so in a platform-agnostic way may also be best served by IDLE.

The following steps will allow the installation of IDLE.app (and other MacPython 2.5 extras, such as Build Applet.app) on a Leopard machine without any redundant elements and without any conflicts with the pre-installed Python environment:

1. Download and mount:

<http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg>

2. In Finder, do a Show Package Contents on "MacPython.mpkg".

3. Navigate to Contents > Packages > PythonApplications-2.5.pkg; double click and install it. This only installs stuff (including IDLE.app) in "/Applications/MacPython 2.5", so it won't interfere with your system install of Python. Also, the installer will let you chose a custom folder to install it into.

4. In Terminal, create a symbolic link for the system's Python.framework in the location expected by the pythonmac.org tools, like so:

cd /Library/Frameworks ; sudo ln -s /System/Library/Frameworks/Python.framework/ Python.framework

You're done! IDLE.app works as intended. So does Build Applet.app. And since the pythonmac.org distro is the same 2.5.1 release as comes pre-installed with Leopard, there shouldn't be any module/interpreter compatibility issues.

MacPython/Leopard (last edited 2011-08-20 20:48:45 by NedDeily)

Unable to edit the page? See the FrontPage for instructions.