python: update to 2.7b2
This commit is contained in:
parent
a29d31e5ab
commit
dac1cfee28
7304
python/.footprint
7304
python/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,2 +1 @@
|
|||||||
6bef0417e71a1a1737ccf5750420fdb3 Python-2.6.5.tar.bz2
|
051aa52f7956c3d92b9621ae44e2a575 Python-2.7b2.tar.bz2
|
||||||
f1db504e47f716f058b6082309a45d15 python-2.6.patch
|
|
||||||
|
@ -4,16 +4,13 @@
|
|||||||
# Depends on: db gdbm ncurses openssl readline bzip2 zlib sqlite3
|
# Depends on: db gdbm ncurses openssl readline bzip2 zlib sqlite3
|
||||||
|
|
||||||
name=python
|
name=python
|
||||||
version=2.6.5
|
version=2.7b2
|
||||||
release=1
|
release=1
|
||||||
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2
|
source=(http://www.python.org/ftp/$name/2.7/Python-$version.tar.bz2)
|
||||||
$name-2.6.patch)
|
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
cd Python-$version
|
cd Python-$version
|
||||||
|
|
||||||
patch -p1 -i $SRC/$name-2.6.patch
|
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
@ -23,14 +20,14 @@ build () {
|
|||||||
make EXTRA_CFLAGS="$CFLAGS"
|
make EXTRA_CFLAGS="$CFLAGS"
|
||||||
make -j1 DESTDIR=$PKG install
|
make -j1 DESTDIR=$PKG install
|
||||||
|
|
||||||
ln -sf python2.6 $PKG/usr/bin/python
|
ln -sf python2.7 $PKG/usr/bin/python
|
||||||
ln -s python2.6 $PKG/usr/lib/python
|
ln -s python2.7 $PKG/usr/lib/python
|
||||||
ln -s python2.6 $PKG/usr/include/python
|
ln -s python2.7 $PKG/usr/include/python
|
||||||
ln -s /usr/lib/libpython2.6.so $PKG/usr/lib/python2.6/config/libpython2.6.so
|
ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
|
||||||
|
|
||||||
rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
|
rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
|
||||||
rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
|
rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
|
||||||
rm $PKG/usr/lib/python/{distutils,site-packages,test}/README
|
rm $PKG/usr/lib/python/{distutils,site-packages}/README
|
||||||
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
|
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
|
||||||
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
|
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user