fixes for Cython 0.23

This commit is contained in:
Mathieu Virbel 2015-08-09 13:50:23 +02:00
parent 408ac30bfa
commit 062a40a833
2 changed files with 3 additions and 3 deletions

View File

@ -72,11 +72,11 @@ cdef extern from "tesselator.h":
pass
ctypedef struct TESSalloc:
pass
ctypedef enum TessElementType:
cdef enum TessElementType:
TESS_POLYGONS
TESS_CONNECTED_POLYGONS
TESS_BOUNDARY_CONTOURS
ctypedef enum TessWindingRule:
cdef enum TessWindingRule:
TESS_WINDING_ODD
TESS_WINDING_NONZERO
TESS_WINDING_POSITIVE

View File

@ -36,7 +36,7 @@ if PY3: # fix error with py3's LooseVersion comparisons
MIN_CYTHON_STRING = '0.20'
MIN_CYTHON_VERSION = LooseVersion(MIN_CYTHON_STRING)
MAX_CYTHON_STRING = '0.22'
MAX_CYTHON_STRING = '0.23'
MAX_CYTHON_VERSION = LooseVersion(MAX_CYTHON_STRING)
CYTHON_UNSUPPORTED = ()