storpipfugl / pykdtree

Fast kd-tree implementation in Python
GNU Lesser General Public License v3.0
215 stars 47 forks source link

Switch to Cython 3 in build process #102

Closed djhoese closed 10 months ago

djhoese commented 10 months ago

This PR doesn't necessarily address a specific issue, but rather prepares for one that I think is coming. This PR does a couple things:

  1. Makes sure that old numpy APIs are not used.
  2. Declares to numpy that it is/will be using the numpy C API in the cython module (to initialize numpy's internal API/state from my understanding).
  3. Forces Cython 3+ to be used during the build process