Skip to content

BLD Always use NumPy 1.7 C API for all compiled extensions #25793

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

Merged

Conversation

jjerphan
Copy link
Member

@jjerphan jjerphan commented Mar 9, 2023

Reference Issues/PRs

Follow-up of #24875

What does this implement/fix? Explain your changes.

The current state of the codebase allows using NumPy 1.7 C API for all compiled extensions.

This PR proposes using it by default.

Any other comments?

If we merge this PR, I think we need to document elements to ease development.
I am waiting for #25608 to be merged first, so that we can and a section to the documentation in this PR.

What do you think?

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am +1 on merging this first and update the dev docs whenever it's ready. I prefer merging early because it prevents any new code from using NumPy's deprecated C-API.

@jjerphan jjerphan added the Waiting for Second Reviewer First reviewer is done, need a second one! label Mar 9, 2023
Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeremiedbb jeremiedbb merged commit 7196a03 into scikit-learn:main Mar 9, 2023
@jjerphan jjerphan deleted the bld/always-use-numpy-1-7-c-api branch March 9, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build / CI cython Waiting for Second Reviewer First reviewer is done, need a second one!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants