Installing Python 3 on Mac OS X Leopard

It’s a long time (almost a month!) I don’t write here anymore, but I’ve come back to teach you how to install Python 3.0 with readline support on Mac OS X 10.5 “Leopard” (incidentally I bought a Macbook
)
- Download the latest readline from the GNU readline homepage.
- Extract it in a folder.
- Download all the patches available here and save them in the same folder.
- Open Terminal and enter in that folder.
- Apply all the patches by running:
patch -p0 < patch_file_name
For example:
patch -p0 < readline52-001 patch -p0 < readline52-002 patch -p0 < readline52-003
- Configure, make and install:
./configure make && sudo make install
- Download the latest Python 3 release from here.
- Extract it and navigate to the folder with Terminal.
- Configure it by running:
./configure --enable-framework --with-readline-dir=/usr/local
- Compile and install it:
make && sudo make frameworkinstall
Here you go!