[Cython] h5py build broken by 0.20b2

Julian Taylor jtaylor.debian at googlemail.com
Sun Jan 12 21:12:18 CET 2014

a h5py cython file fails to build with cython git head and 0.20b2.
It works with older versions.
This file fails

The offending file seems to be:

cython h5py/h5p.pyx
Error compiling Cython file:
from _objects cimport ObjectID

# --- Base classes ---

cdef class PropID(ObjectID):
    """ Base class for all property lists """
h5py/h5p.pxd:17:4: Executable statement not allowed here

it was introduced in cython around this commit:
properly handle expressions at the beginning of func/class/etc. blocks

Is this an intentional change? I did not see anything related in the
CHANGES.rst of the 0.20.x branch.
Please advise if this is a bug/regression in cython or
bug/required-change in h5py.

Note, I know neither cython nor h5py, Yaroslav Halchenko just
encountered this issue while testing packages with 0.20b2 in Debian.
Let me know if you need more information.

More information about the cython-devel mailing list