Installing py on Max OS X Leopard is really easy. It’s as easy as sudo easy_install py, if you have the latest version of setuptools installed. py requires a more recent version(0.6C8) of setup tools than the one thats available in System Frameworks(0.6C7). Well, thats not too bad, we can just upgrade setuptools.
However, there are a couple of problems associated with upgrading setup tools:
easy_install installs its packages to /Library/Python/<version>/site-packageseasy_install command itself is dependent on setuptools and this points to the older version under System FrameworksAfter some google time, I was unable to find an easy way to upgrade setuptools. So I went into hack mode and got it to work. I really hope there is a better method than this:
Upgrade setuptools
You can do this either by downloading the latest setuptools package or using the sudo easy_install -U setuptools command.
Find the easy_install executable script.
It’s probably at /usr/bin/easy_install
Edit the file and update all the references of setuptools to point to the latest version. s/0.6C7/0.6C9
sudo easy_install py should just work.