[SciPy-Dev] Mountain Lion Scipy-dev build fails (Ralf Gommers)

Ralf Gommers ralf.gommers@gmail....
Tue Aug 14 16:47:19 CDT 2012


On Sun, Aug 12, 2012 at 1:03 PM, Samuel John <scipy@samueljohn.de> wrote:

> Hi,
>
> I contributed to the homebrew python formula (i.e. the build script)
> recently and I heavily use numpy/scipy.
>
> In homebrew, it depends on the compiler and machine, which flags are added
> by default.
> We could change that, if we have a good reason to do so. But I got the
> feeling that python does fine with these flag and with clang.
>

I downloaded a tarball with Python sources from python.org and searched
through it (also the generated makefile), but couldn't find so quickly
where this flag is added. Do you happen to know?

Ralf


> Perhaps numpy.distutils is the right place to tune?
>
> bests,
>  Samuel
>
>
>
> On 10.08.2012, at 08:56, Ralf Gommers <ralf.gommers@gmail.com> wrote:
>
> >
> >
> > On Fri, Aug 10, 2012 at 4:08 AM, Aaron Andalman <nerduno.list@gmail.com>
> wrote:
> > Ralf,
> >
> > Thanks for the information. You were correct; the -msse4 flag does
> appear to be coming from the brew installation of python.  Grep reveals the
> flag in a Makefile, and editing the makefile altered the results of scipy
> python setup.py configure.   Thus scipy now compiles!  Thank you.
> >
> > However, I'm hoping to understand how and why scipy gets the -msse4 flag
> from the Makefile?  Should this be modified?  Or should the brew python
> formula be modified somehow?
> >
> > The flags with which Python itself is compiled are passed from Python
> distutils to numpy.distutils. In principle that's what we want. Only scipy
> doesn't compile with it; numpy does apparently. So we could try to filter
> out that flag in numpy.distutils, but the easier solution is to remove it
> from the homebrew Makefile.
> >
> > Ralf
> >
> > _______________________________________________
> > SciPy-Dev mailing list
> > SciPy-Dev@scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-dev
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20120814/33b46e8a/attachment.html 


More information about the SciPy-Dev mailing list