Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-10 Thread Dr. David Kirkby
On 06/10/10 10:43 AM, Willem Jan Palenstijn wrote: On Thu, Jun 10, 2010 at 07:16:56AM +0100, David Kirkby wrote: drkir...@redstart:~$ cat /usr/lib/pkgconfig/freetype2.pc prefix=/usr/sfw exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: FreeType 2 Description: A

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-10 Thread Willem Jan Palenstijn
On Thu, Jun 10, 2010 at 07:16:56AM +0100, David Kirkby wrote: > drkir...@redstart:~$ cat /usr/lib/pkgconfig/freetype2.pc > prefix=/usr/sfw > exec_prefix=${prefix} > libdir=${exec_prefix}/lib > includedir=${prefix}/include > > Name: FreeType 2 > Description: A free, high-quality, and portable font

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-10 Thread Dr. David Kirkby
On 06/10/10 07:16 AM, David Kirkby wrote: I've tried the following - none of which avoid matplotlib finding the version of freetype on my system and not the one in Sage. 1) $ export PKG_CONFIG_PATH=/export/home/drkirkby/32/sage-4.4.3/local/pkgconfig Actually, that should have been PKG_CONFIG

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread David Kirkby
On 10 June 2010 03:22, John Hunter wrote: > On Wed, Jun 9, 2010 at 9:15 PM, John Hunter wrote: > >>   * sys.platform != 'darwin' on the box you are building on.  In this >> case you need to modify your patch to include sys.platform.  This is >> the most likely culprit as far as I can see. > > Sor

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread John Hunter
On Wed, Jun 9, 2010 at 9:15 PM, John Hunter wrote: >   * sys.platform != 'darwin' on the box you are building on.  In this > case you need to modify your patch to include sys.platform.  This is > the most likely culprit as far as I can see. Sorry, upon rereading your post, I see you are building

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread John Hunter
On Wed, Jun 9, 2010 at 2:08 PM, Dr. David Kirkby wrote: >> The mpl configure happens in setupext.py that lives next to setup.py. >> It tries to use pkgconfig if it is available to find freetype, so you >> may have luck setting your PKG_CONFIG_PATH if you are using it. > > I was not using PKG_CONF

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread Dr. David Kirkby
On 06/ 9/10 07:04 PM, John Hunter wrote: On Wed, Jun 9, 2010 at 9:25 AM, Dr. David Kirkby wrote: Thank you. I noticed on package (Singular) where CPPFLAGS was not set to $SAGE_LOCAL/include, and doing so ensured the include files in Sage were found. I've not tried this with Matplotlib, but it

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread John Hunter
On Wed, Jun 9, 2010 at 9:25 AM, Dr. David Kirkby wrote: > Thank you. I noticed on package (Singular) where CPPFLAGS was not set to > $SAGE_LOCAL/include, and doing so ensured the include files in Sage were > found. I've not tried this with Matplotlib, but it might be a way to work > around the pr

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread Dr. David Kirkby
On 06/ 9/10 03:16 PM, Ondrej Certik wrote: On Mon, Jun 7, 2010 at 5:21 PM, Dr. David Kirkby wrote: When matplot lib builds on 't2', it says: BUILDING MATPLOTLIB matplotlib: 0.99.1 python: 2.6.4 (r264:75706, Jun 5 2010, 17:43:53) [GCC 4.4.1

Re: [sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-09 Thread Ondrej Certik
On Mon, Jun 7, 2010 at 5:21 PM, Dr. David Kirkby wrote: > When matplot lib builds on 't2', it says: > > BUILDING MATPLOTLIB >            matplotlib: 0.99.1 >                python: 2.6.4 (r264:75706, Jun  5 2010, 17:43:53)  [GCC >                        4.4.1] >              platform: sunos5 > > R

[sage-devel] matplotlib is reading old system headers, in preference to Sage ones.

2010-06-07 Thread Dr. David Kirkby
When matplot lib builds on 't2', it says: BUILDING MATPLOTLIB matplotlib: 0.99.1 python: 2.6.4 (r264:75706, Jun 5 2010, 17:43:53) [GCC 4.4.1] platform: sunos5 REQUIRED DEPENDENCIES numpy: 1.3.0 free