diff options
Diffstat (limited to 'extra/python2/Pkgfile')
-rwxr-xr-x | extra/python2/Pkgfile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/extra/python2/Pkgfile b/extra/python2/Pkgfile index 699bc5c93..20d3524ca 100755 --- a/extra/python2/Pkgfile +++ b/extra/python2/Pkgfile @@ -2,11 +2,11 @@ # URL: http://www.python.org # Maintainer: NuTyX core team # Packager: thierryn1 at hispeed dot ch -# Depends on: pth, sqlite3 +# Depends on: db, bzip2, gdbm, openssl, zlib, expat, sqlite3, libffi name=python2 version=2.7.1 -release=3 +release=4 _pybasever=2.7 source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2 @@ -16,7 +16,9 @@ build() { cd Python-$version patch -Np1 -i ../python-2.7-db51.diff + sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py + rm -r Modules/expat rm -r Modules/zlib rm -r Modules/_ctypes/{darwin,libffi}* @@ -29,7 +31,7 @@ build() { --enable-unicode=ucs4 --with-system-expat --with-system-ffi make - make DESTDIR=$PKG install + make DESTDIR=$PKG altinstall ln -sf python${_pybasever} $PKG/usr/bin/python2 ln -sf python${_pybasever}-config $PKG/usr/bin/python2-config @@ -57,9 +59,5 @@ build() { # clean-up reference to build directory sed -i "s#$SRC/Python-$version:##" \ $PKG/usr/lib/python${_pybasever}/config/Makefile - - rm $PKG/usr/bin/python - rm $PKG/usr/bin/python-config - } |