[Cython] h5py build broken by 0.20b2
Stefan Behnel
stefan_ml at behnel.de
Mon Jan 13 09:26:04 CET 2014
Hi,
thanks for the report!
Julian Taylor, 12.01.2014 21:12:
> 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?
Well, yes, but apparently one with unintended side-effects. :)
I pushed a proposed quick-fix here, test case pending, so it would be great
if you or Yaroslav could give it a try.
https://github.com/cython/cython/commit/279efc20fb8fb0bbcba5922afd010bdd3424e3b5
Stefan
More information about the cython-devel
mailing list