Python bindings for the Zephyr messaging library
Python C
Switch branches/tags
Latest commit ef949e2 Jan 1, 2017 @andersk andersk committed with timabbott _ZNotice_p2c: Declare type for charset
This is needed since _ZCharsets isn’t a real type.  Fixes this build

_zephyr.c: In function ‘__pyx_f_7_zephyr__ZNotice_p2c’:
_zephyr.c:2913:19: error: storage size of ‘__pyx_v_charset’ isn’t known
   enum _ZCharsets __pyx_v_charset;

Signed-off-by: Anders Kaseorg <>


Installing PyZephyr

To install PyZephyr, you will first need to install Cython_. It's always a good
idea to install Cython through your package manager, if possible.  If your
package manager doesn't have a package for Cython, or if you wish to install
Cython by hand anyway, you can do so by running::

  $ easy_install Cython

Once you've done that, to install PyZephyr globally, run::

  $ python install

If you want to build PyZephyr without installing it globally, you may
want to run::

  $ python build_ext --inplace

which will build the C extensions in place next to their source,
allowing you to import the various modules, so long as your current
working directory is the root of the PyZephyr source tree.

Alternatively, PyZephyr has been packaged for Debian and Ubuntu. To
build the Debian package of the latest release, run::

  $ git checkout debian
  $ git buildpackage
  $ sudo debi

You will need the devscripts and git-buildpackage packages installed,
as well as this package's build dependencies (debhelper,
python-all-dev, python-central, python, cython, libzephyr-dev).

.. _Cython: