Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread John Hunter
On Mon, Sep 28, 2009 at 4:47 AM, Dr. David Kirkby wrote: > William Stein wrote: >> >> Hi, >> >> I spent several hours yesterday trying to get matplotlib for Sage to >> work on OS X 10.6.  On my laptop everything works perfectly, but on >> another test machine (bsd.math) the workaround from my lapt

Re: [matplotlib-devel] Fwd: OS X 10.6 port

2009-09-28 Thread Michael Droettboom
John Hunter wrote: > I spent several hours yesterday trying to get matplotlib for Sage to > work on OS X 10.6. On my laptop everything works perfectly, but on > another test machine (bsd.math) the workaround from my laptop doesn't > work. So at this point Sage still does not support OS X 10.6. >

Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread Michael Droettboom
I forgot a detail: you have to use a script to edit the commandline arguments to pass to gcc: #!/bin/sh y="" for x in $* do case "$x" in -xcode*) echo skip $x ;; *) y="$y $x" ;; esac done gcc $y and th

Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread Michael Droettboom
This is a very long-standing bug in distutils: http://bugs.python.org/issue1222585 While distutils distinguishes between C and C++ for *linking*, it does not do so for *compiling*. This doesn't matter for gcc and msvc (which are arguably the two most popular compilers for Python), but proba

Re: [matplotlib-devel] Fwd: OS X 10.6 port

2009-09-28 Thread Tony S Yu
On Sep 28, 2009, at 2:14 AM, John Hunter wrote: > in case anyone has some suggestions, I'm forwarding this from the > sage list > > > -- Forwarded message -- > From: William Stein > Date: Sun, Sep 27, 2009 at 10:51 PM > Subject: OS X 10.6 port > To: sage-devel , John Hunter >

Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread Dr. David Kirkby
Michael Droettboom wrote: > This is a very long-standing bug in distutils: > > http://bugs.python.org/issue1222585 > > While distutils distinguishes between C and C++ for *linking*, it does > not do so for *compiling*. This doesn't matter for gcc and msvc (which > are arguably the two most p

Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread William Stein
On Mon, Sep 28, 2009 at 4:54 AM, John Hunter wrote: > On Mon, Sep 28, 2009 at 4:47 AM, Dr. David Kirkby > wrote: >> William Stein wrote: >>> >>> Hi, >>> >>> I spent several hours yesterday trying to get matplotlib for Sage to >>> work on OS X 10.6.  On my laptop everything works perfectly, but on

Re: [matplotlib-devel] Fwd: OS X 10.6 port

2009-09-28 Thread William Stein
On Mon, Sep 28, 2009 at 8:47 AM, John Hunter wrote: > -- Forwarded message -- > From: Tony S Yu > Date: Mon, Sep 28, 2009 at 8:41 AM > Subject: Re: [matplotlib-devel] Fwd: OS X 10.6 port > To: John Hunter > Cc: matplotlib development list > > > > On Sep 28, 2009, at 2:14 AM, Joh

Re: [matplotlib-devel] Fwd: OS X 10.6 port

2009-09-28 Thread William Stein
On Mon, Sep 28, 2009 at 8:55 AM, William Stein wrote: > On Mon, Sep 28, 2009 at 8:47 AM, John Hunter wrote: >> -- Forwarded message -- >> From: Tony S Yu >> Date: Mon, Sep 28, 2009 at 8:41 AM >> Subject: Re: [matplotlib-devel] Fwd: OS X 10.6 port >> To: John Hunter >> Cc: matplo

Re: [matplotlib-devel] [sage-devel] PyCXX, Matplotlib and OS X 10.6

2009-09-28 Thread William Stein
On Mon, Sep 28, 2009 at 9:14 AM, John Hunter wrote: > On Mon, Sep 28, 2009 at 10:48 AM, William Stein wrote: >> If you could just try running your matplotlib build on >> bsd.math.washington.edu and reporting about whether or not it works, >> that would be very helpful, since it will indicate whet

Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread John Hunter
On Mon, Sep 28, 2009 at 11:14 AM, John Hunter wrote: > But even simple tests are failing with:: > > jdh2...@bsd:~> LD_LIBRARY_PATH=~/devtest/lib/ > PYTHONPATH=~/devtest/lib/python2.6/site-packages/ /usr/bin/python -c > 'import matplotlib; matplotlib.use("Agg"); from matplotlib.pyplot > import *;

Re: [matplotlib-devel] [sage-devel] OS X 10.6 port

2009-09-28 Thread William Stein
On Mon, Sep 28, 2009 at 9:35 AM, John Hunter wrote: > On Mon, Sep 28, 2009 at 11:14 AM, John Hunter wrote: > >> But even simple tests are failing with:: >> >> jdh2...@bsd:~> LD_LIBRARY_PATH=~/devtest/lib/ >> PYTHONPATH=~/devtest/lib/python2.6/site-packages/ /usr/bin/python -c >> 'import matplotli

Re: [matplotlib-devel] Comparing pdf output in tests

2009-09-28 Thread Jouni K . Seppänen
Jouni K. Seppänen writes: > I committed something based on this, and a new rc parameter > savefig.extension that sets the filename extension when you call savefig > with a bare filename. The pdf tests seem to be working, at least for me, > but I am sure that the code can be improved. The buildbo