diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-06-28 18:19:46 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-06-28 18:20:07 -0400 |
commit | e105a00cab63d93cb86e59a6b2663e283a732fe2 (patch) | |
tree | e5ecd8fb4f36e43d65c6fdbf9213674dcedd2571 /dev-python/pyzmq | |
parent | sys-auth/pam_u2f: initial commit of U2F PAM module (diff) | |
download | gentoo-e105a00cab63d93cb86e59a6b2663e283a732fe2.tar.gz gentoo-e105a00cab63d93cb86e59a6b2663e283a732fe2.tar.bz2 gentoo-e105a00cab63d93cb86e59a6b2663e283a732fe2.zip |
dev-python/pyzmq: fix build with cython-0.24
Bug: https://bugs.gentoo.org/583192
Package-Manager: portage-portage_p2.3.0
Diffstat (limited to 'dev-python/pyzmq')
-rw-r--r-- | dev-python/pyzmq/files/pyzmq-cython-0.24.patch | 33 | ||||
-rw-r--r-- | dev-python/pyzmq/pyzmq-15.2.0.ebuild | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/pyzmq/files/pyzmq-cython-0.24.patch b/dev-python/pyzmq/files/pyzmq-cython-0.24.patch new file mode 100644 index 000000000000..55be83ec8143 --- /dev/null +++ b/dev-python/pyzmq/files/pyzmq-cython-0.24.patch @@ -0,0 +1,33 @@ +From 659f9211aad1565543e26ef6877456d017c9d5bb Mon Sep 17 00:00:00 2001 +From: Min RK <benjaminrk@gmail.com> +Date: Tue, 8 Mar 2016 09:17:05 +0100 +Subject: [PATCH] remove unused, deprecated `_handle` + +Cython 0.24 may not support property assignment +--- + zmq/backend/cython/context.pyx | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/zmq/backend/cython/context.pyx b/zmq/backend/cython/context.pyx +index 2cb7409..3595c10 100644 +--- a/zmq/backend/cython/context.pyx ++++ b/zmq/backend/cython/context.pyx +@@ -108,16 +108,12 @@ cdef class Context: + if self._n_sockets: + # move last handle to closed socket's index + self._sockets[idx] = self._sockets[self._n_sockets] +- +- ++ + @property + def underlying(self): + """The address of the underlying libzmq context""" + return <size_t> self.handle +- +- # backward-compat, though nobody is using it +- _handle = underlying +- ++ + cdef inline int _term(self): + cdef int rc=0 + if self.handle != NULL and not self.closed and getpid() == self._pid: diff --git a/dev-python/pyzmq/pyzmq-15.2.0.ebuild b/dev-python/pyzmq/pyzmq-15.2.0.ebuild index 2ed5a56d2d49..022dfdfe514c 100644 --- a/dev-python/pyzmq/pyzmq-15.2.0.ebuild +++ b/dev-python/pyzmq/pyzmq-15.2.0.ebuild @@ -32,6 +32,8 @@ DEPEND="${RDEPEND} dev-python/numpydoc[${PYTHON_USEDEP}] )" +PATCHES=( "${FILESDIR}/pyzmq-cython-0.24.patch" ) + python_prepare_all() { # Prevent un-needed download during build sed -e "/'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |