Mach-O MacPython IDE in the CVS tree
Jack has made significant progress with the Mach-O Framework build of Python lately, and has posted instructions for people interested in testing what will become the out of the box distribution of Python 2.3 for Mac OS X. There has been a slight amount of difficulty getting things to work properly, however, so I thought I'd summarize some of the issues people have run into and provide step-by-step instructions for those interested in getting this working.
First, make sure the machine you will install on has not had it's default UNIX software overridden by fink. There have been problems reported by users with fink-installed software on their systems, and it's probably best if you attempt this on a system on which no fink software has been installed. However, if you have installed fink and still wish to try, you may be able to get things to work by disabling fink temporarily using these instructions (it worked for me.)
- Open a new, fresh terminal.
- Check your path by typing
- If you see any path entries starting with /sw/, these entries were made by fink.
- If you have fink entries, set your path for this terminal session by typing
setenv PATH /bin:/usr/bin:/usr/local/bin
Checking python out of CVS
Check python out of cvs using the instructions at http://sourceforge.net/cvs/?group_id=5470
cvs -d:pserver:firstname.lastname@example.org:/cvsroot/python login
- At the password prompt, press return.
cvs -z3 -d:pserver:email@example.com:/cvsroot/python co
- Wait while cvs checks out the latest python source files from the tree.
In order to run the MacPython IDE, you need to be able to compile the waste module. There is a binary library available which, when placed in the correct place, the python build process will find and link the python waste module against.
- Visit http://www.merzwaren.com/waste/
- Under Downloadable Files, get the latest 2.1 release.
- If necessary, unstuff and mount the disk image.
- In the Finder, navigate to ~/python/dist
- While holding down option, drag the WASTE disk from your desktop or another finder window into ~/python/dist
- If you don't hold down option, OS X may try to make an alias instead of copying.
- Rename the folder "waste"
- This may not be necessary any more, but it cannot hurt: In a terminal, type
ranlib ~/python/dist/waste/Static\ Libraries/libWASTE.a
Compile and install Python as a Framework
Make sure you are in a terminal whose PATH does not include fink directories, as described above.
- Change to the python source directory.
If all went well, you should now have some very useful python applications in /Applications/Python! If anything went wrong, please let the PythonMac mailing list know.