-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
arnimarj@gmail.com
committed
May 12, 2012
1 parent
a31c11c
commit 046fc83
Showing
2 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,48 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
# see http://python.org/download/releases/ | ||
set -e | ||
|
||
wget -qc http://python.org/ftp/python/3.2.1/Python-3.2.1.tar.bz2 | ||
wget -qc http://python.org/ftp/python/3.1.4/Python-3.1.4.tar.bz2 | ||
wget -qc http://python.org/ftp/python/3.0.1/Python-3.0.1.tar.bz2 | ||
wget -qc http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 | ||
wget -qc http://python.org/ftp/python/2.6.7/Python-2.6.7.tar.bz2 | ||
wget -qc http://python.org/ftp/python/2.5.6/Python-2.5.6.tar.bz2 | ||
wget -qc http://python.org/ftp/python/2.4.6/Python-2.4.6.tar.bz2 | ||
# sudo apt-get install zlib1g-dev | ||
|
||
#for i in `ls | grep bz2$`; do bzip2 -dc $i | tar -x; done | ||
|
||
for i in `find -maxdepth 1 -type d | grep ^./P | grep -v build | sort | grep 2.5`; do | ||
( | ||
echo $i; | ||
cd $i; | ||
# ./configure --prefix=`pwd`-build; | ||
make && make install; | ||
mkdir -p download; | ||
cd download; | ||
|
||
# see http://python.org/download/releases/ | ||
|
||
# wget -qc http://python.org/ftp/python/3.2.3/Python-3.2.3.tar.bz2; | ||
# wget -qc http://python.org/ftp/python/3.1.5/Python-3.1.5.tar.bz2; | ||
# wget -qc http://python.org/ftp/python/3.0.1/Python-3.0.1.tar.bz2; | ||
# wget -qc http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2; | ||
# wget -qc http://python.org/ftp/python/2.6.8/Python-2.6.8.tar.bz2; | ||
# wget -qc http://python.org/ftp/python/2.5.6/Python-2.5.6.tar.bz2; | ||
# wget -qc http://python.org/ftp/python/2.4.6/Python-2.4.6.tar.bz2; | ||
|
||
# decompress | ||
# for i in `ls | grep bz2$`; do bzip2 -dc $i | tar -x; done | ||
|
||
# # apply patches | ||
# for i in `find -maxdepth 1 -type d | grep ^./P | grep -v build | grep -v env | sort`; do | ||
# ( | ||
# cd $i; | ||
# patch -s < ../../setup.py.patch; | ||
# ) done | ||
|
||
# build | ||
for i in `find -maxdepth 1 -type d | grep ^./P | grep -v build | grep -v env | sort`; do | ||
( | ||
cd $i; | ||
pwd; | ||
CXX=g++ ./configure --disable-option-checking --enable-unicode=ucs4 --with-wide-unicode --prefix=`pwd`-build > /dev/null; | ||
make > /dev/null; | ||
make install > /dev/null; | ||
) done | ||
|
||
# # virtualenv | ||
# for i in `find -maxdepth 1 -type d | grep ^./P | grep -v build | grep -v env | sort`; do | ||
# ( | ||
# echo $i; | ||
# virtualenv -p $i-build/bin/python $i-env; | ||
# ) done | ||
|
||
) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- setup.py 2006-10-08 17:41:25.000000000 +0000 | ||
+++ setup.py.new 2012-05-12 21:01:30.975090063 +0000 | ||
@@ -269,6 +269,7 @@ | ||
lib_dirs = self.compiler.library_dirs + [ | ||
'/lib64', '/usr/lib64', | ||
'/lib', '/usr/lib', | ||
+ '/usr/lib/x86_64-linux-gnu/' | ||
] | ||
inc_dirs = self.compiler.include_dirs + ['/usr/include'] | ||
exts = [] |