-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
BLD Use NPY_NO_DEPRECATED_API in meson.build to mirror setup.py #29357
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 Use NPY_NO_DEPRECATED_API in meson.build to mirror setup.py #29357
Conversation
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.
LGTM. Thank you, @lesteve!
@jjerphan just to be clear if we ever start using a deprecated Numpy C API, this would be a compilation error with the current setting in this PR, right? |
I think that depending the version of the C API which is used, the compilation of Cython-generated C translation can fail if they are using deprecated pieces of API. Supposedly, Gentle ping to @seberg: is this remark true? |
One thing I am a bit confused about: should the no deprecated flag match our minimum supported Numpy version (currently Numpy 1.19.5) and use |
I think the higher is stricter works, but nothing was really ever added to the deprecations due to lack of interest in the existing ones mostly (i.e. without cython 3 it was all rather useless anyway). |
Looks like this was not ported from
setup.py
which is likely an oversight. It is not clear to me what the impact is to be fully honest if any, for example on the released scikit-learn 1.5 wheels.Probably more details are available at here and here.
The comment is from Scipy
meson.build
, feel free to suggest improvements.This was noticed in #29352, see in particular #29352 (comment).