python 2.6.7

This commit is contained in:
Kenneth Reitz
2013-11-12 04:40:27 -05:00
parent 630df8c1ad
commit 0512160c38
3 changed files with 62 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Options: <output-dir>
OUT_PREFIX=$1
echo "Building SQLite..."
./parts/sqlite $OUT_PREFIX
echo "Building Python..."
SOURCE_TARBALL='http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tar.bz2'
curl $SOURCE_TARBALL | tar jx
mv Python-2.6.7 src
cd src
./configure --prefix=$OUT_PREFIX
make
make install
cd ..
rm -fr src
ln $OUT_PREFIX/bin/python $OUT_PREFIX/bin/python2
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Options: <output-dir>
OUT_PREFIX=$1
echo "Building SQLite..."
./parts/sqlite $OUT_PREFIX
echo "Building Python..."
SOURCE_TARBALL='http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.bz2'
curl $SOURCE_TARBALL | tar jx
mv Python-2.7.6 src
cd src
./configure --prefix=$OUT_PREFIX
make
make install
cd ..
rm -fr src
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Options: <output-dir>
OUT_PREFIX=$1
echo "Building SQLite..."
./parts/sqlite $OUT_PREFIX
echo "Building Python..."
SOURCE_TARBALL='http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tar.bz2'
curl $SOURCE_TARBALL | tar jx
mv Python-3.3.3 src
cd src
./configure --prefix=$OUT_PREFIX
make
make install
cd ..
rm -fr src
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python