Code: Alles auswählen
curl ftp://ftp.cwru.edu/pub/bash/readline-5.2.tar.gz | tar xz
cd readline-5.2
./configure
make static
cd ..
curl http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz | tar xz
cd Python-2.6.1
mkdir readline
cp ../readline-5.2/*.h readline/
cp ../readline-5.2/*.a .
./configure --prefix=$HOME/python3
make
# modules not built: _bsddb gdbm linuxaudiodev ossaudiodev spwd sunaudiodev
rm build/lib.macosx-10.3-i386-3.0/readline.so
make LDFLAGS=-L.
sudo mkdir -m 775 -p /usr/local/bin
sudo chgrp admin /usr/local/bin
make frameworkinstall
cd ..
export PATH=$PATH:/usr/local/bin
python2.6
IDLE als Mac-Anwendung funktioniert leidlich, ich hätte nur vermutet, es gibt einen Weg, die Schriftgröße und Farben einzustellen. Es fehlt aber offenbar das "Options"-Menü, welches die Hilfe erwähnt.
So kann man easy_install und virtualenv installieren:
Code: Alles auswählen
curl -o setuptools-0.6c9-py2.6.egg http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg
sh setuptools-0.6c9-py2.6.egg
ln -s /Library/Frameworks/Python.framework/Versions/2.6/bin/easy_install /usr/local/bin/easy_install-2.6
easy_install-2.6 virtualenv
ln -s /Library/Frameworks/Python.framework/Versions/2.6/bin/virtualenv /usr/local/bin/virtualenv-2.6
Stefan