-
Notifications
You must be signed in to change notification settings - Fork 280
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
BLD: fix compatibility with Cython 3.1 #4948
BLD: fix compatibility with Cython 3.1 #4948
Conversation
d08d348
to
82994dc
Compare
Cython
(drop deprecated DEF
statements)
f9ddcaf
to
01b10d7
Compare
|
||
from yt.utilities.lib.fp_utils cimport * | ||
|
||
from .oct_container cimport Oct, OctreeContainer | ||
|
||
cdef extern from "numpy/npy_math.h": | ||
double NPY_PI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To see why this change was needed, see https://cython.readthedocs.io/en/latest/src/changes.html#other-changes
The previously shipped NumPy C-API declarations (cimport numpy) were removed. NumPy has been providing version specific declarations for several versions now. (Github issue #5842)
Cython
(drop deprecated DEF
statements)
This looks good to me, but since it's been a while and the sph projections touched a lot of cython, I think it'd be nice to merge with main here to double check that we haven't introduced any additional compatibility issues. What do you think? |
e643586
to
8a4003f
Compare
rebased on the tip of main ! |
PR Summary
Close #4044
Following Cython's migration guide