6

I have installed zeromq under CPython. How can I install it that it runns also under pypy?

www.zeromq.org/

The problem is it that zeromq needs Cython.

Davoud Taghawi-Nejad
  • 16,142
  • 12
  • 62
  • 82

1 Answers1

8

To work with pypy, you need to use a ctypes-based binding, such as pyzmq-ctypes or zmqpy.

2013 Update: pyzmq works with pypy now, so you can just pip install pyzmq on pypy.

minrk
  • 37,545
  • 9
  • 92
  • 87
  • Is anyone of them preferable? Especially speed wise? – Davoud Taghawi-Nejad Aug 06 '12 at 23:06
  • 1
    I use neither, but I have heard people complain that pyzmq-ctypes is slow. pyzmq-ctypes wraps libzmq directly, while zmqpy wraps czmq (a higher-level C binding to libzmq). It shouldn't be difficult to run a few simple benchmarks, though I know of no reports from anyone already having done that. – minrk Aug 07 '12 at 01:10
  • zmqpy as per its own web site is a work in progress, and the implementation is not as complete as pyzmq, e.g. zmq_setsockopt is implemented but not zmq_getsockopt, etc. – Erik Kaplun Sep 09 '12 at 16:43
  • Hello! I'm the author of zmqpy. Nowdays, I would say that zmqpy is runs stable and it's pretty fast. It's not complete as PyZMQ but if you open an issue I'll try to close it as fast as I can. – Felipe Cruz Oct 09 '12 at 02:48
  • Hi! Neither zmqpy or pyzmq-ctypes seem to be working with pypy (at least in my case, in 2014). Is there a zmq ctypes-based binding out there that's still being maintained? – rob Apr 16 '14 at 23:04
  • zmqpy was merged into pyzmq as an alternate backend, so you can just use pyzmq with pypy now. – minrk Apr 18 '14 at 02:51