[arch-commits] Commit in python2/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu Dec 11 05:55:05 UTC 2014
Date: Thursday, December 11, 2014 @ 06:55:04
Author: fyan
Revision: 227422
upgpkg: python2 2.7.9-1
upstream new release
Modified:
python2/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-12-11 04:56:31 UTC (rev 227421)
+++ PKGBUILD 2014-12-11 05:55:04 UTC (rev 227422)
@@ -1,12 +1,12 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
# Contributor: Allan McRae <allan at archlinux.org>
# Contributor: Jason Chu <jason at archlinux.org>
pkgname=python2
-pkgver=2.7.8
-pkgrel=2
+pkgver=2.7.9
+pkgrel=1
_pybasever=2.7
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
@@ -14,10 +14,13 @@
url="http://www.python.org/"
depends=('bzip2' 'gdbm' 'openssl' 'zlib' 'expat' 'sqlite' 'libffi')
makedepends=('tk' 'bluez-libs')
-optdepends=('tk: for IDLE')
+checkdepends=('gdb')
+optdepends=('tk: for IDLE'
+ 'python2-setuptools'
+ 'python2-pip')
conflicts=('python<3')
source=(http://www.python.org/ftp/python/${pkgver%rc?}/Python-${pkgver}.tar.xz)
-sha1sums=('9c6281eeace0c3646fa556c8087bb1b7e033c9c4')
+sha1sums=('3172f6e957713c2d9fca462cc16068222fd1b9d3')
prepare() {
cd Python-${pkgver}
@@ -33,8 +36,13 @@
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python2|" Lib/cgi.py
sed -i "s/python2.3/python2/g" Lib/distutils/tests/test_build_scripts.py \
- Lib/distutils/tests/test_install_scripts.py
+ Lib/distutils/tests/test_install_scripts.py
+ # TODO: Still not passed
+ # Silent test_gdb failures on 'no symbol table loaded'.
+ #sed -i '/ignore_patterns = (/a "No symbol table is loaded. Use the \\"file\\" command.",' \
+ # Lib/test/test_gdb.py
+
# Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
# rather than copies shipped in the tarball
rm -r Modules/expat
@@ -60,19 +68,20 @@
--enable-unicode=ucs4 \
--with-system-expat \
--with-system-ffi \
- --with-dbmliborder=gdbm:ndbm
+ --with-dbmliborder=gdbm:ndbm \
+ --without-ensurepip
make
}
check() {
- # As of 2.7.7, 1 test failed:
- # test_uuid
+ # As of 2.7.9, 2 tests failed:
+ # test_gdb test_mhlib
# Besides, test_thread disabled as it will stuck
cd Python-${pkgver}
LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
- "${srcdir}/Python-${pkgver}/python" -m test.regrtest -uall -x test_thread || warning "Tests failed"
+ "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_thread || warning "Tests failed"
}
package() {
More information about the arch-commits
mailing list