joezuntz / cosmosis-standard-library

11 stars 31 forks source link

Update classy.pyx for cython v3.0.0+ #125

Closed AngusWright closed 5 months ago

AngusWright commented 8 months ago

Cython version 3.0.0+ deprecated the use of cpdef for variables. This means that cosmosis-build-standard-library crashes with the newest versions of cython. This patch fixes the crash. It should also be backward compatible to earlier versions of cython, I think...

joezuntz commented 5 months ago

Thanks for this! I'm back from leave now and will test it out. This is a bit fiddly as I will need to update the conda environment and doing either one first will break things for other people, so I'd like to do them at the same time.

joezuntz commented 5 months ago

The test failure here is not associated with this PR, so I'll merge. Thanks so much!