Skip to content

Conversation

seberg
Copy link
Member

@seberg seberg commented Jun 12, 2023

We have removed the interrupt handling from the docs a long time ago with a big comment to try to discourage them, so I don't think this should be controversial.
The noprefix.h is also so old, that I suspect we can get away with asking users to fix their code, but if anyone thinks otherwise (or maybe rather complains strongly after the fact), I am OK with reconsidering.

Adds a category in the release notes for the removals, since I think the list will get long (likely we should format it as a table at some point, but for now I think I prefer not to have two processes in parallel).


This is a draft because it is based on top of gh-23916

@seberg
Copy link
Member Author

seberg commented Jun 12, 2023

Major downstream packages don't use noprefix.h anymore. Github search finds a few likely abandoned uses, so I guess some folks will see this. I would tend to try it, but it isn't exactly hard to maintain, so am fine either way.
(interrupt handling is buggy and we don't use it, so I do want to remove it.)

@seberg seberg force-pushed the slash-headers-and-interrupt branch from c2f963c to 2560870 Compare June 12, 2023 12:36
@seberg seberg marked this pull request as ready for review June 12, 2023 12:36
Copy link
Member

@mattip mattip left a comment

Choose a reason for hiding this comment

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

LGTM. Nice cleanup

directory = "c_api_removal"
name = "NumPy 2.0 C API removals"
showcontent = true

Copy link
Member

Choose a reason for hiding this comment

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

Do you want to add snippets for the removals in #23916?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't going to, because those have all been effectively removed already (use is always an error)

@mattip mattip merged commit 6846da9 into numpy:main Jun 12, 2023
@mattip
Copy link
Member

mattip commented Jun 12, 2023

Thanks @seberg

@seberg seberg deleted the slash-headers-and-interrupt branch June 12, 2023 15:56
@rgommers rgommers added this to the 2.0.0 release milestone Mar 13, 2024
rgommers added a commit to rgommers/numpy that referenced this pull request Mar 13, 2024
The `npy_interrupt.h` header that needed it was removed in numpygh-23919
for 2.0.0.
charris pushed a commit to charris/numpy that referenced this pull request Mar 15, 2024
The `npy_interrupt.h` header that needed it was removed in numpygh-23919
for 2.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants