[Numpy-discussion] Is this a bug in numpy.distutils ?
Charles R Harris
Tue Aug 4 12:16:28 CDT 2009
On Tue, Aug 4, 2009 at 10:51 AM, Dave <email@example.com> wrote:
> David Cournapeau <cournape <at> gmail.com> writes:
> > On Tue, Aug 4, 2009 at 8:13 PM, David
> > Cournapeau<david <at> ar.media.kyoto-u.ac.jp> wrote:
> > > I think I understand the problem. Unfortunately, that's looks tricky to
> > > solve... I hate distutils.
> > Ok - should be fixed in r7281.
> > David
> Well, that seemed to fix the bdist_wininst issue.
> The problem compiling scipy remains, but I assume that's probably something
> should take up on the scipy list?
> FWIW running the full numpy test suite (verbose=10) I get 7 failures. The
> results are available from http://pastebin.com/m5505d4b5
> The "errors" seem to be be related to the NaN handling.
The nan problems come from these tests:
# atan2(+-infinity, -infinity) returns +-3*pi/4.
yield assert_almost_equal, ncu.arctan2( np.inf, -np.inf), 0.75 * np.pi
yield assert_almost_equal, ncu.arctan2(-np.inf, -np.inf), -0.75 * np.pi
# atan2(+-infinity, +infinity) returns +-pi/4.
yield assert_almost_equal, ncu.arctan2( np.inf, np.inf), 0.25 * np.pi
yield assert_almost_equal, ncu.arctan2(-np.inf, np.inf), -0.25 * np.pi
So the problem seems to be with the inf handling. Windows arctan2 is known
to be wtf-buggy and I suspect that is what is being tested.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion