Skip to content

API: Remove old_defines.h (part of NumPy 1.7 deprecated C-API)#24011

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:remove-old-defines
Jun 21, 2023
Merged

API: Remove old_defines.h (part of NumPy 1.7 deprecated C-API)#24011
charris merged 1 commit intonumpy:mainfrom
seberg:remove-old-defines

Conversation

@seberg
Copy link
Member

@seberg seberg commented Jun 21, 2023

Simple removal. There is more in the 1.7 deprecated API, but this should be the easiest first step.

(We can probably remove all of the macros in the 1.7 api header. The main annoyance is that the cython exposes some of the macro names in it; not from this part of the API though. E.g. numpy.random does use those macros)

@seberg seberg force-pushed the remove-old-defines branch from d79c9ac to b0371e3 Compare June 21, 2023 11:49
@seberg seberg force-pushed the remove-old-defines branch from b0371e3 to 611b36f Compare June 21, 2023 11:52
@charris charris merged commit 46bdab7 into numpy:main Jun 21, 2023
@charris
Copy link
Member

charris commented Jun 21, 2023

Let's give this a shot. Do you know if Cython 3 is more compatible?

@seberg
Copy link
Member Author

seberg commented Jun 21, 2023

We could just keep the aliases in Cython, but probably just have to force users to deal with it...

Cython 3 will help a lot (or rather be required) if we want to e.g. hide the layout of PyArray_Descr *, which would be nice.

@seberg seberg deleted the remove-old-defines branch June 21, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants