added python installer
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Sep 2010 23:32:41 +0000 (16:32 -0700)
committerAndrew Tridgell <tridge@samba.org>
Tue, 21 Sep 2010 23:32:41 +0000 (16:32 -0700)
install_python.sh [new file with mode: 0755]

diff --git a/install_python.sh b/install_python.sh
new file mode 100755 (executable)
index 0000000..c3a8e0b
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# this script should be . included into the fns file
+# of any system that needs an update to its python install
+
+PATH=$HOME/python/bin:$PATH
+export PATH
+
+VERSION="Python-2.6.5"
+
+set -e
+
+cd $HOME
+mkdir -p python
+cd python
+rsync -Pavz samba.org::ftp/tridge/python/$VERSION.tar . || exit 1
+tar -xf $VERSION.tar || exit 1
+cd $VERSION || exit 1
+./configure --prefix=$HOME/python --disable-ipv6 || exit 1
+make || exit 1
+make install || exit 1