Need an advice

Tony Yu tsyu80 at gmail.com
Thu Jan 26 11:00:23 EST 2012


On Wed, Jan 25, 2012 at 2:54 PM, David <cournape at gmail.com> wrote:

>
>
> On Jan 14, 1:34 am, Stéfan van der Walt <ste... at sun.ac.za> wrote:
> > On Sun, Jan 1, 2012 at 11:02 PM, Nadav Horesh <nadavh.hor... at gmail.com>
> wrote:
> > > Shouldn't be a way to copy compilation flags from
> pythonx.x/config/Makefile?
> > > I think (not sure) that numpy does it.
> >
> > I've CCd David Cournapeau on this e-mail; I think he'll be able to
> > recommend the best route forward
> > (David, the full message is here:
> http://groups.google.com/group/scikits-image/browse_thread/thread/a2d...
> > ).
> >
> > One alternative is to simply try the compilation, first with the fast
> > math flag, then without, and then have a conditional import in the
> > code that loads whatever survives the compilation process (with
> > ndimage's convolve as a backup).
>
> I would advise against using -ffast-math, which really should be
> called -funsafe-math. We removed it in scipy some time ago as it had
> the annoying property of giving completely borked results.
>
> David


Thanks for your help. Do you (or anyone else on the list) have any idea how
to attempt compilation of a Cython file and gracefully exit if it's
unsuccessful? (By graceful, I mean: continue compiling the rest of the
package and don't produce *.so files for failed modules.)

-Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20120126/98f48d60/attachment.html>


More information about the scikit-image mailing list