[SciPy-Dev] Installing scipy on OS 10.6.2

Thouis (Ray) Jones thouis@broad.mit....
Tue Mar 23 19:10:30 CDT 2010

While trying to build universal binaries on 10.5, I found that editing
was easier than trying to fight my way through to a working set of
environment variables.

My particular changes were to modify these lines:
BASECFLAGS=     -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk  -fno-strict-aliasing -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic
LDFLAGS=        -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -g
CONFIG_ARGS=    '-C' '--enable-framework'
'--enable-universalsdk=/Developer/SDKs/MacOSX10.4u.sdk' 'LDFLAGS=-g '
'OPT=-g -O3 '

After those changes, "python setup.py build" for numpy & scipy worked
without problems, and without other variables being set.

This may apply to your situation as well (using x86_64 to replace the
other architectures).

Thouis Jones

On Tue, Mar 23, 2010 at 19:33, David Cournapeau <cournape@gmail.com> wrote:
> On Wed, Mar 24, 2010 at 2:03 AM, Paul H. Fuoss <fuoss@anl.gov> wrote:
>> Ralf,
>> I downloaded scipy from svn.  Then I did the command:
>> $ LDFLAGS="-lgfortran -arch x86_64" FFLAGS="-arch x86_64" sudo python setupscons.py install
> Don't use sudo (it modifies how environment variables are handled),
> and remove the unnecessary -lgfortran. from LDFLAGS.
> David
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev

More information about the SciPy-Dev mailing list