diff options
author | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
commit | 18a41d682d6e91e0d28fce23eb75292f477bd620 (patch) | |
tree | bce8f660d7d0b6541cadbc49bf1bac2434e4c0c6 /community/python-pyzmq/PKGBUILD | |
parent | 0ade1da67addf154d93c6a6399b0a3d5a18a3336 (diff) |
Sun Aug 11 01:21:31 PDT 2013
Diffstat (limited to 'community/python-pyzmq/PKGBUILD')
-rw-r--r-- | community/python-pyzmq/PKGBUILD | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/community/python-pyzmq/PKGBUILD b/community/python-pyzmq/PKGBUILD deleted file mode 100644 index c531e17c1..000000000 --- a/community/python-pyzmq/PKGBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# $Id: PKGBUILD 92654 2013-06-10 15:28:34Z bpiotrowski $ -# Maintainer: Kyle Keen <keenerd at gmail dot com> -pkgbase=python-pyzmq -pkgname=(python2-pyzmq python-pyzmq) -pkgver=13.1.0 -pkgrel=1 -pkgdesc="Python bindings for zeromq, written in Cython" -arch=(i686 x86_64) -url="http://www.zeromq.org/bindings:python" -license=('LGPL') -depends=(zeromq python) -makedepends=(python python2 zeromq) -#source=(https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz) -source=(https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz) -md5sums=('b54a2209a4efed93ed00282d949db8d9') - -build() { - cd "$srcdir" - cp -a pyzmq-${pkgver} py2zmq-${pkgver} - cd "$srcdir/pyzmq-$pkgver" - # py3 errors added in 2.2.0.1 - sed -i 's|except socket.error, e:|except socket.error as e:|' zmq/eventloop/ioloop.py - sed -i 's|except gevent.Timeout, t:|except gevent.Timeout as t:|' zmq/green/core.py - cd "$srcdir/py2zmq-$pkgver" - sed -i 's|^#!/usr/bin/env python$|&2|' $(find ./ -name '*.py') -} - -package_python2-pyzmq() { - pkgdesc="Python2 bindings for zeromq, written in Cython" - depends=(zeromq python2) - cd "$srcdir/py2zmq-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=0 -} - -package_python-pyzmq() { - pkgdesc="Python3 bindings for zeromq, written in Cython" - depends=(zeromq python) - cd "$srcdir/pyzmq-$pkgver" - python3 setup.py install --root="$pkgdir" --optimize=0 -} - -check() -{ - cd "$srcdir/pyzmq-$pkgver" - python3 setup.py build_ext --inplace - python3 setup.py test - cd "$srcdir/py2zmq-$pkgver" - python2 setup.py build_ext --inplace - python2 setup.py test -} |