On Wed, Jul 27, 2011 at 9:00 PM, Russell E. Owen <[email protected]> wrote:
> In article > <cabl7cqj4i6stf_qjndvch66fsfc5bjq9etpx3ukczaxyyuw...@mail.gmail.com>, > Ralf Gommers <[email protected]> wrote: > > > On Wed, Jul 27, 2011 at 7:17 PM, Ilan Schnell <[email protected] > >wrote: > > > > > MacOS Lion: > > > >>> numpy.sqrt([complex(numpy.nan, numpy.inf)]) > > > array([ nan+infj]) > > > > > > Other all system: > > > array([ inf+infj]) > > > > > > This causes a few numpy tests to fail on Lion. The numpy > > > was not compiled using the new LLVM based gcc, it is the > > > same numpy binary I used on other MacOS systems, which > > > was compiled using gcc-4.0.1. However on Lion it is linked > > > to Lions LLVM based gcc runtime, which apparently has some > > > different behavior when it comes to such strange complex > > > values. > > > > > > These type of complex corner cases fail on several other platforms, > there > > they are marked as skipped. I propose not to start changing this yet - > the > > compiler change is causing problems with scipy ( > > http://projects.scipy.org/scipy/ticket/1476) and it's not yet clear what > the > > recommended build setup on Lion should be. > > > > Regarding binaries, it may be better to distribute separate ones for each > > version of OS X from numpy 1.7 / 2.0 (we already do for python 2.7). In > that > > case this particular failure will not occur. > > Please don't distribute a different numpy binary for each version of > MacOS X. That makes it very difficult to distribute bundled applications. > > The current situation is very reasonable, in my opinion: numpy has two > Mac binary distributions for Python 2.7: 32-bit 10.3-and-up and 64-bit > 10.6-and-up. These match the python.org python distributions. I can't > see wanting any more than one per python.org Mac binary. > If 10.6-built binaries are going to work without problems on 10.7 - also for scipy - then two versions is enough. I'm not yet confident this will be the case though. Do the tests for the current 10.6 scipy installer pass on 10.7? And do the 10.3-and-up Python 2.7 and 3.2 binaries work on 10.7? Those are explicitly listed as 10.3-10.6 (not 10.7 ...). > Note that the numpy Mac binaries are not listed next to each other on > the numpy sourceforge download page, so some folks are installing the > wrong one. That unfortunately can't be changed, unless I re-upload everything in the desired order. The SF interface has been rewritten, but it's not much of an improvement. Ralf > If you add even more os-specific flavors the problem is > likely to get worse. > >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
