Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile classy with Cython version 3.0+ #1

Open
EBHolm opened this issue Sep 22, 2023 · 0 comments
Open

Compile classy with Cython version 3.0+ #1

EBHolm opened this issue Sep 22, 2023 · 0 comments

Comments

@EBHolm
Copy link
Collaborator

EBHolm commented Sep 22, 2023

Since Cython 3.0 (which is the new standard version), it is illegal to cpdef variables; instead, one should use cdef. This has resulted in classy being unable to install when the user has the newest version of cython installed (see lesgourg/class_public#531). An easy fix for now is to simply replace cpdef with cdef the 4-5 places it occurs in classy.pyx. class_public has not fixed this yet, but it would be an advantage to do it here on the fork itself to avoid users being unable to install.

Later on, more things will be deprecated, but at that point I think it's best to follow whatever solution will be implemented on class_public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant