Go to file
Brian Granger b758716f43 Bumping version in __init__.py. 2010-09-21 14:52:49 -07:00
docs Added skeleton of Sphinx based docs. 2010-02-20 23:49:50 -08:00
examples Fix line endings for fedora. 2010-09-14 14:01:34 +08:00
perf Initial version of 2.0.8 compatible pyzmq. 2010-08-28 20:05:28 -07:00
zmq Bumping version in __init__.py. 2010-09-21 14:52:49 -07:00
.gitignore Added setup.cfg to .gitignore. 2010-03-22 14:42:45 -07:00
COPYING.LESSER First prototype of new Cython based 0MQ bindings for Python. 2010-02-12 15:16:08 -08:00
MANIFEST.in Fixing MANIFEST.in. 2010-08-28 18:23:22 -07:00
README.rst Added contributor. 2010-09-13 23:19:18 -07:00
setup.cfg.template Updating README.rst and setup.cfg.template. 2010-05-27 15:48:38 -07:00
setup.py Bumping version number for 2.0.8 release. 2010-09-21 14:49:20 -07:00
setupegg.py Fix file endings and simplejson spelling error. 2010-03-12 18:53:26 -08:00

README.rst

==============================
PyZMQ: Python bindings for 0MQ
==============================

This package contains Python bindings for `0QM <http://www.zeromq.org>`_.
0MQ is a lightweight and fast messaging implementation.

Building and installation
=========================

General
-------

To build and install this Python package, you will first need to build and
install the latest development version of 0MQ itself. After you have done
this, follow these steps:

First, copy the ``setup.cfg.template`` file in this directory to ``setup.cfg``
and edit the `include_dirs` and `library_dirs` fields of the ``setup.cfg``
file to point to the directories that contain the library and header file for
your 0MQ installation.

Second, run this command::

    $ python setup.py install

Cython is not required to build pyzmq, but it is required if you want to
develop pyzmq.

Windows
-------

Generally you'll need to add the location of ``libzmq.dll`` to your ``$PATH``.
Here's Microsoft's docs:
http://msdn.microsoft.com/en-us/library/7d83bc18(VS.80).aspx on this topic.

It is best to compile both ØMQ and PyØMQ with Microsoft Visual Studio 2008 or
above. You should not need to use mingw.

Linux
-----

On Linux, you will need to do one of the following:

* Set ``LD_LIBRARY_PATH`` to point to the ``lib`` directory of 0MQ.
* Build the extension using the ``-rpath`` flag::

    $ python setup.py build_ext --rpath=/opt/zeromq-dev/lib --inplace

Development
-----------

To develop PyZMQ, you will need to install Cython, version 0.13 or greater.
After installing Cython, instead of doing ``python setup.py install`` do::

    $ python setup.py build_ext --inplace
    $ python setupegg.py develop

This will build the C extension inplace and then put this directory on your
``sys.path``. With this configuration you only have to run::

    $ python setup.py build_ext --inplace

each time you change the ``.pyx`` files. To clean the sources, you can do::

    $ python setup.py clean

Testing
-------

To run the test suite after installing, just do::

    $ python setup.py test

Authors
=======

This project was started by Brian E. Granger (ellisonbg AT gmail DOT com).

The following people have contributed to the project:

* Carlos Rocha (carlos DOT rocha AT gmail DOT com)
* Andrew Gwozdziewycz (git AT apgwoz DOT com)
* Fernando Perez (fernando DOT perez AT berkeley DOT edu)
* Nicholas Piel (nicholas AT nichol DOT as)
* Eugene Chernyshov (chernyshov DOT eugene AT gmail DOT com)
* Justin Riley (justin DOT t DOT riley AT gmail DOT com)
* Ivo Danihelka (ivo AT denihelka DOT net)
* Thomas Supra (tomspur AT fedoraproject DOT org)
* Douglas Creager (dcreager AT dcreager DOT net)
* Erick Tryzelaar <erick DOT tryzelaar AT gmail DOT com>