CWD=`pwd` cd /tmp tar xyvf $CWD/Python-2.0.1.tar.bz2 cd Python-2.0.1 cp Modules/Setup.in Modules/Setup zcat $CWD/python-libdb1.diff.gz | patch -E -p1 --verbose --backup --suffix=.orig zcat $CWD/python-miscmodules.diff.gz | patch -E -p1 --verbose --backup --suffix=.orig zcat $CWD/python-readline.diff.gz | patch -E -p1 --verbose --backup --suffix=.orig zcat $CWD/python-shared.diff.gz | patch -E -p1 --verbose --backup --suffix=.orig zcat $CWD/python-tkinter.diff.gz | patch -E -p1 --verbose --backup --suffix=.orig zcat $CWD/python-ncurses.diff.gz | patch -E -p1 --verbose --backup --suffix=.orig ./configure --prefix=/usr \ --with-ncurses \ --with-threads make OPT=-O2 make OPT=-O2 install # Install docs: mkdir /usr/doc/python-2.0.1 cp -a README /usr/doc/python-2.0.1 cp -a Misc /usr/doc/python-2.0.1 ( cd /usr/doc/python-2.0.1 ; mkdir html ) ( cd /usr/doc/python-2.0.1 tar xyvf $CWD/html-2.0.1.tar.bz2 ) chown -R root.root /usr/doc/python-2.0.1