Closed rossjjennings closed 1 year ago
Hi @rossjjennings , will this also be compatible with Cython <3.0, or was there a change in the way that cdef
works at the new version?
It should also be compatible with the previous versions. Looking at the original Cython issue that gave rise to this here, my understanding is that there was never a difference between cdef
and cpdef
for variables, only for functions, and they decided to make it an error in 3.0 to discourage people from using cpdef
variables.
Also note that the current version of libstempo.pyx
has this comment:
# TO DO: is cpdef required here?
Apparently it wasn't.
As I mentioned in #53, trying to install libstempo from source is giving me a bunch of Cython errors because of a change in Cython 3.0 that forbid
cpdef
for variables. Apparently there was no difference betweencpdef
andcdef
in these contexts anyway. So this PR changes the offendingcpdef
lines tocdef
.