renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
329 stars 66 forks source link

Build fails with cython-0.23 #13

Closed zeekec closed 9 years ago

zeekec commented 9 years ago

As reported here, building pygame_sdl2 fails when compiling with cython-0.23

The error given is:

Error compiling Cython file:
------------------------------------------------------------
...

    cdef Sint64 left = sf.length - sf.tell
    cdef size_t rv;

    if size * maxnum > left:
        maxnum = left / size
                     ^
------------------------------------------------------------

src/pygame_sdl2/rwobject.pyx:149:22: Cannot assign type 'double' to 'size_t'
pygame_sdl2.error is out of date.
pygame_sdl2.color is out of date.
pygame_sdl2.rect is out of date.
pygame_sdl2.rwobject is out of date.

Command '['cython', '-3', '-Iinclude', '-Igen3', '-a', 'src/pygame_sdl2/rwobject.pyx', '-o', 'gen3/pygame_sdl2.rwobject.c']' returned non-zero exit status 1