2010/12/10 Ludwig Schwardt <[email protected]>:
> For the record, I set the following environment variables in
> ~/.profile on Snow Leopard:
>
> # These compiler flags ensure 32-bit + 64-bit code generation, as
> Snow Leopard produces 64-bit code by default
> export MACOSX_DEPLOYMENT_TARGET=10.6
> export CFLAGS="-arch i386 -arch x86_64 -isysroot
> /Developer/SDKs/MacOSX10.6.sdk"
> export LDFLAGS="-arch i386 -arch x86_64
> -syslibroot,/Developer/SDKs/MacOSX10.6.sdk"
> export FFLAGS="-m32 -m64"
> CFLAGS=${CFLAGS}" -I/usr/X11/include -I/usr/X11/include/freetype2"
> LDFLAGS=${LDFLAGS}" -L/usr/X11/lib" python setupegg.py bdist_egg
Python normally chooses those -arch flags which were chosen for Python
at compile time.
It's not a good idea to set CFLAGS and LDFLAGS with distutils I
learned. They do not stack with the compilation time CFLAGS etc., but
completely override. Better adapt the pathes in setupext.py.
> I've been meaning to publish my installation instructions for
> numpy/scipy/matplotlib/ipython on Snow Leopard somewhere for quite a
> while, but that will have to wait for another day... I've tried to
> trim down my installation procedure to the minimum steps that will
> guarantee a working system without introducing extra libraries /
> Pythons / etc, so there might be some interest in it.
So we should team up in improving our docs :-)
Friedrich
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel