[zeromq-dev] PyZMQ support for socket options added in ZeroMQ 2.1

Martin Lucina mato at kotelna.sk
Thu Nov 11 00:50:14 CET 2010


I need to add support for some of the new socket options added in ZeroMQ
2.1 to PyZMQ for an application I'm developing, however I'm having problems
figuring out what version of Cython to use. On my Debian lenny system, if I
use the distro-provided version (0.9.8) I get:

cythoning zmq/_zmq.pyx to zmq/_zmq.c

Error converting Pyrex file to C:
cdef extern from "Python.h":
    object PyCObject_FromVoidPtr(void *, void (*)(void*))


cdef inline void *memnew(size_t n):

/home/mato/src/pyzmq/zmq/allocate.pxi:9:32: Expected ')'

I've tried building 0.12.1 from the Debian source package, but that
produces even more errors.

Any hints? Or, pretty please, could one of you PyZMQ people add support for
ZMQ_LINGER to the 2.0.x branch? With the new ZMQ_VERSION constants that
should be possible to do in a way that would be backward-compatible.

The reason I wanted to start with PyZMQ 2.0.x is that all my code is
developed on PyZMQ 2.0.x (but ZeroMQ master) and I'd rather not transition
to PyZMQ master just now.

Thanks in advance,


More information about the zeromq-dev mailing list