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

BLD: forbid deprecated numpy C API #4607

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

neutrinoceros
Copy link
Member

@neutrinoceros neutrinoceros commented Jul 28, 2023

PR Summary

Close #4606

@neutrinoceros neutrinoceros added infrastructure Related to CI, versioning, websites, organizational issues, etc enhancement Making something better labels Jul 28, 2023
@neutrinoceros neutrinoceros marked this pull request as draft July 28, 2023 08:56
@neutrinoceros neutrinoceros changed the title BLD: forbid deprecated numpy C API BLD: forbid deprecated numpy C API (⏰ wait for #4575) Jul 28, 2023
@neutrinoceros neutrinoceros added this to the 4.3.0 milestone Jul 29, 2023
@neutrinoceros neutrinoceros added build related to the build process and removed infrastructure Related to CI, versioning, websites, organizational issues, etc labels Jul 31, 2023
@neutrinoceros neutrinoceros changed the title BLD: forbid deprecated numpy C API (⏰ wait for #4575) BLD: forbid deprecated numpy C API Aug 1, 2023
@neutrinoceros neutrinoceros marked this pull request as ready for review August 1, 2023 15:35
@chrishavlin
Copy link
Contributor

chrishavlin commented Aug 3, 2023

read through the cython 3 link in the linked issue and it says:

One side-effect of the different C-API usage is that your code may now require a call to the NumPy C-API initialisation function where it previously got away without doing so.

Would we get test failures with this PR if that were the case for us? edit: I guess my more relevant question: are we building with cython 3 already? (dont have time to look myself at the moment...)

@neutrinoceros
Copy link
Member Author

Yes we are ! We switched the requirements to Cython>3.0 in a previous PR, so I expect we'd see errors in CI if this was impacting us.

@chrishavlin chrishavlin merged commit 410618d into yt-project:main Aug 3, 2023
9 checks passed
@neutrinoceros neutrinoceros deleted the no_npy_deprecated_api branch August 3, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build related to the build process enhancement Making something better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BLD: future-compat issue with numpy (numpy 1.7 deprecated C API)
3 participants