[arch-commits] Commit in twisted/trunk (PKGBUILD)
Ionut Biru
ibiru at archlinux.org
Wed Aug 18 13:45:24 UTC 2010
Date: Wednesday, August 18, 2010 @ 09:45:23
Author: ibiru
Revision: 87856
upgpkg: twisted 10.0.0-2
python rebuild
Modified:
twisted/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-08-18 13:33:20 UTC (rev 87855)
+++ PKGBUILD 2010-08-18 13:45:23 UTC (rev 87856)
@@ -5,12 +5,12 @@
pkgname=twisted
pkgver=10.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="Asynchronous networking framework written in Python."
arch=('i686' 'x86_64')
url="http://twistedmatrix.com/"
license=('MIT')
-depends=('python' 'pycrypto' 'zope-interface')
+depends=('python2' 'pycrypto' 'zope-interface')
optdepends=('pyopenssl'
'python-soappy:for twisted.web.soap')
install=twisted.install
@@ -20,6 +20,12 @@
build() {
cd "${srcdir}/Twisted-${pkgver}"
- python setup.py install --prefix=/usr --root=$pkgdir --optimize=1 || return 1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" || return 1
+ python2 setup.py install --prefix=/usr --root=$pkgdir --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ -i ${pkgdir}/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ -i ${pkgdir}/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py
+
}
More information about the arch-commits
mailing list