cmake-build-extension
cmake-build-extension copied to clipboard
Update numpy.i for SWIG 4.3 compatibility
Update numpy.i
to the latest version, from
https://github.com/numpy/numpy/blob/v2.1.2/tools/swig/numpy.i, plus apply the changes from https://github.com/numpy/numpy/pull/27579.
An incompatibility with the upcoming SWIG 4.3 test was reported in Fedora Linux. I reported the issue to numpy in https://github.com/numpy/numpy/issues/27578 and proposed a fix in https://github.com/numpy/numpy/pull/27579. This PR circles back to where things started, copying in the latest numpy.i
from numpy upstream, plus the changes from https://github.com/numpy/numpy/pull/27579.