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

Remove support for Numeric (as opposed to NumPy) from Kiva #1011

Merged
merged 11 commits into from
May 5, 2023

Conversation

corranwebster
Copy link
Contributor

@corranwebster corranwebster commented Feb 16, 2023

It turns out there was some code that was available to support, and some that used, the Numeric C API (ie. the predecessor to NumPy). The compatibility headers that NumPy provided to help with this are going away, so this PR removes all uses of Numeric code.

Fixes #1005

Changes needed:

  • removing code that actually used Numeric (most of that was ifdef-ed out)
  • replacing PyArray_SBYTES with PyArray_BYTES
  • modernize kiva.quartz to use current ways to get at NumPy and Python headers

This will also need #1007 merged in at some point.

kiva/agg/src/readme.txt Outdated Show resolved Hide resolved
@corranwebster corranwebster marked this pull request as ready for review May 2, 2023 11:45
Copy link
Member

@jwiggins jwiggins left a comment

Choose a reason for hiding this comment

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

LGTM

@corranwebster
Copy link
Contributor Author

Thanks!

@corranwebster corranwebster merged commit 0ae01f0 into main May 5, 2023
@corranwebster corranwebster deleted the enh/remove-numeric branch May 5, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

please remove usages of the numpy/oldnumeric.h header
2 participants