replace deprecated numpy.math use with libc.math#548
Conversation
|
Hi @chadawagner, Thanks so much for this PR and the fix in commit I was experiencing build failures with I did notice that during the compilation of the Cython extensions with this commit, a couple of warnings are still present:
While these warnings don't seem to break functionality for my use case, I wanted to share this feedback in case it's helpful for further refinements or for when this PR is considered for merging into Thanks again for tackling this! |
|
Thanks for this fix @chadawagner ! |
|
will this be merged anytime soon/ is there a way to install from this PR? |
@ajayarora1235 the issue was only breaking due to missing files in Cython 3.1, which has been fixed in 3.1.2 afaik |
Changes proposed in this pull request
Use libc.math to import INFINITY rather than deprecated numpy.math
https://github.com/cython/cython/blob/e2e63cb22b2fcc4f5a3780707b0b24fb6be0ffe1/Cython/Includes/numpy/math.pxd#L21-L23
This pull request fixes #547.
Note: even though
numpy.mathwas only deprecated and should still work, builds now fail due to numpy missing from Cython 3.1 wheels cython/cython#6859. Presumably that will be corrected, but we should update to uselibc.mathgoing forward, and should consider placing an upper bound on dependencies to be resilient to similar issues in the future.