[Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-03 Thread Ondřej Čertík
Hi, As part of building matplotlib for the one python based distribution [1], I want to always link against our own version of libpng, even if there is some other systemwide version available. I am on linux (Ubuntu). Currently, here is what I am doing: CFLAGS="-I$PNG/include -I$FREETYPE/include

Re: [Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-03 Thread Ondřej Čertík
On Fri, May 3, 2013 at 12:41 PM, Ondřej Čertík wrote: > Hi, > > As part of building matplotlib for the one python based distribution [1], I meant to say "for one python distribution", not "the one"... Ondrej -

Re: [Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-06 Thread Ondřej Čertík
On Mon, May 6, 2013 at 7:18 AM, Michael Droettboom wrote: > On 05/03/2013 02:41 PM, Ondřej Čertík wrote: >> Hi, >> >> As part of building matplotlib for the one python based distribution [1], >> I want to always link against our own version of libpng, even if there

Re: [Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-06 Thread Ondřej Čertík
On Mon, May 6, 2013 at 3:53 PM, Michael Droettboom wrote: > My understanding is that distutils builds up the commandline arguments for > gcc in this order: > > 1) From Python's Makefile. > 2) From environment variables > 3) From whatever was added by the setup.py script > > It looks like you

Re: [Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-06 Thread Ondřej Čertík
On Mon, May 6, 2013 at 6:27 PM, Michael Droettboom wrote: > Well, we could try a different approach. matplotlib will use pkg-config to > find its dependencies, if available. > > If you can get your local libpng to include a libpng.pc (i.e. a pkg-config > information file) and then add your local