[SciPy-Dev] Mountain Lion Scipy-dev build fails (Ralf Gommers)
Tue Aug 14 16:47:19 CDT 2012
On Sun, Aug 12, 2012 at 1:03 PM, Samuel John <firstname.lastname@example.org> wrote:
> 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?
> Perhaps numpy.distutils is the right place to tune?
> On 10.08.2012, at 08:56, Ralf Gommers <email@example.com> wrote:
> > On Fri, Aug 10, 2012 at 4:08 AM, Aaron Andalman <firstname.lastname@example.org>
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-Dev