[Cython] h5py build broken by 0.20b2

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


Hi,
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:
https://github.com/h5py/h5py/blob/master/h5py/h5p.pyd

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:
b6b5152f386ddae503674cc26200a547f3b4c8b0
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