Skip to content

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

Merged
corranwebster merged 11 commits into
mainfrom
enh/remove-numeric
May 5, 2023
Merged

Remove support for Numeric (as opposed to NumPy) from Kiva#1011
corranwebster merged 11 commits into
mainfrom
enh/remove-numeric

Conversation

@corranwebster
Copy link
Copy Markdown
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.

Comment thread kiva/agg/src/readme.txt Outdated
@corranwebster corranwebster marked this pull request as ready for review May 2, 2023 11:45
@corranwebster corranwebster requested a review from jwiggins May 4, 2023 15:39
Copy link
Copy Markdown
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
Copy Markdown
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