tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: finding isnan
>> > http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20231104.1950/py310-scikit-learn-1.3.2/build.log
>>
>> If it is including cmath, it should be using std::isnan. If it
>> is mixing math.h and cmath,
>> it should stop doing that, ideally by including cmath first.
>
> If I understand the build process correctly, it's using math.h only,
> but the code is in files generated by cython, for code like this:
>
> sklearn/utils/_isfinite.pyx:from libc.math cimport isnan, isinf
> sklearn/utils/_isfinite.pyx: if isnan(v):
>
> So I'm not sure how to fix that.
> Thomas
This sounds similar to another problem I bumped into with python
code which uses cython, ref.:
https://github.com/pandas-dev/pandas/issues/51047
Regrettably, I could not land a "proper" fix for this.
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index