Set MPLCONFIGDIR to something different

I meant to send this to the list, not just to Brent…

···

---------- Forwarded message ----------
From: Warren Weckesser <warren.weckesser@…287…>

Date: Mon, Aug 18, 2008 at 4:03 PM
Subject: Re: [Matplotlib-users] Set MPLCONFIGDIR to something different
To: Brent Pedersen <bpederse@…287…>

Hi,

On Mon, Aug 18, 2008 at 3:55 PM, Brent Pedersen <bpederse@…287…> wrote:

On Mon, Aug 18, 2008 at 8:25 AM, stuartornum <stuart@…2110…> wrote:

Hi Jeff,

Sorry I should have explained more. I am running a web app also I currently

working for a very large organisation so the infrastructure is quite

different to your average home / signle server setup.

Thank you.

i think before importing matplotlib, you can do:

os.environ[‘HOME’] = “/some/path”

I do that on my server, e.g. my python CGI scripts do
os.environ[‘HOME’] = ‘/var/www/tmp’
before importing anything from matplotlib. Seems to work fine.

This is explained in a FAQ or doc or tutorial somewhere.

Warren

I've installed the Enthought Python Distribution for Mac OS on my MacOS 10.4 Intel machine.

when i try to install basemap-0.99.1 I get this error:

gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option "-mno-fused-madd"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-long-double"
error: Command "gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Isrc -I/Library/Frameworks/Python.framework/Versions/4.0.30001/lib/python2.5/site-packages/numpy-1.1.1.0001-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/4.0.30001/include/python2.5 -c src/PJ_gn_sinu.c -o build/temp.macosx-10.3-i386-2.5/src/PJ_gn_sinu.o" failed with exit status 1

Any ideas?

lisa tauxe