Differences between revisions 14 and 15
Revision 14 as of 2008-11-23 00:40:20
Size: 2434
Editor: bas7-toronto12-1096785041
Comment:
Revision 15 as of 2008-12-20 14:05:20
Size: 2435
Editor: p5497ADB5
Comment: Python 2.5.3
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Mac OS X 10.5.x (Leopard) comes with the 2.5.1 Python distribution pre-installed, with an integrated Python Launcher.app. At the time of Leopard's launch, the official release version of Python is also 2.5.1. (Python version 2.5.2 has since been released.) So some 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 and the standard pythonmac.org distribution will not allow its installation without the installation of at least a complete, redundant Python.framework. Mac OS X 10.5.x (Leopard) comes with the 2.5.1 Python distribution pre-installed, with an integrated Python Launcher.app. At the time of Leopard's launch, the official release version of Python was also 2.5.1. (Python version 2.5.3 has since been released.) So some 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 and the standard pythonmac.org distribution will not allow its installation without the installation of at least a complete, redundant Python.framework.

Mac OS X 10.5.x (Leopard) comes with the 2.5.1 Python distribution pre-installed, with an integrated Python Launcher.app. At the time of Leopard's launch, the official release version of Python was also 2.5.1. (Python version 2.5.3 has since been released.) So some 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 and the standard pythonmac.org distribution will not allow its 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 (and later) 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:

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

It is recommended that you delete the newly installed Python Launcher.app, because it is already present inside the system Python.framework. If you have installed Apple's developer tools (Xcode et al), it is recommended that you delete the newly installed Build Applet.app, because it is already present in /Developer/Applications/Utilities/MacPython 2.5.

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

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