mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
08a66c4024
new pkg added to fullfill checkdepends new order file python3.order
54 lines
1.6 KiB
Bash
54 lines
1.6 KiB
Bash
pkgbase=python-pyzmq
|
|
pkgname=('python2-pyzmq' 'python3-pyzmq')
|
|
pkgver=15.2.0
|
|
pkgrel=2
|
|
pkgdesc="Python bindings for zeromq, written in Cython"
|
|
arch=('x86_64')
|
|
url="http://www.zeromq.org/bindings:python"
|
|
license=('LGPL')
|
|
depends=('zeromq' 'python3')
|
|
makedepends=('python3' 'python2' 'zeromq')
|
|
#checkdepends=('python3-nose' 'python2-nose' 'python3-tornado' 'python2-tornado')
|
|
#source=(https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz)
|
|
source=(https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz)
|
|
sha256sums=('2dafa322670a94e20283aba2a44b92134d425bd326419b68ad4db8d0831a26ec')
|
|
|
|
prepare() {
|
|
cd "$srcdir"
|
|
cp -a pyzmq-${pkgver} py2zmq-${pkgver}
|
|
}
|
|
|
|
build() {
|
|
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_python3-pyzmq() {
|
|
pkgdesc="Python3 bindings for zeromq, written in Cython"
|
|
depends=(zeromq python)
|
|
cd "$srcdir/pyzmq-$pkgver"
|
|
python3 setup.py install --root="$pkgdir" --optimize=0
|
|
}
|
|
|
|
# missing python2-singledispatch
|
|
#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
|
|
#}
|