Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

Dear John and George,

I am happy to report that everything is now working!
The latest SVN patch fixed the fetch problem and a complete removal of
my custom compiled libpng and libfreetype2 followed by:

sudo make -f make.osx fetch deps mpl_build mpl_install
sudo python setup.py install

did the rest.

Thank you for all your help!

Kind regards,

Pim Schellart

P.S. I am looking forward to seeing 64 binaries for Python 2.6/2.7 and
numpy/scipy/matplotlib on OSX 10.6 at some point in the future :slight_smile:

2010/5/26 John Hunter <jdh2358@...287...>:

···

On Wed, May 26, 2010 at 8:20 AM, John Hunter <jdh2358@...287...> wrote:

On Wed, May 26, 2010 at 8:14 AM, Pim Schellart <p.schellart@...287...> wrote:

I still get the error (after svn up to revision 8336) but strangely
when I try to decompress manually I get:

matplotlib $ gunzip zlib-1.2.3.tar.gz

gzip: zlib-1.2.3.tar.gz: not in gzip format

I'm getting that too -- looks like the target has moved. When I cat
the file I see

OK, I think I have this fixed. I can now fetch valid files:

jdhunter@...2795...:mpl> make -f make.osx clean
rm -rf zlib-1.2.3.tar.gz libpng-1.2.39.tar.bz2 \
freetype-2.3.11.tar.bz2 bdist_mpkg-.tar.gz \
bdist_mpkg- \
zlib-1.2.3 libpng-1.2.39 freetype-2.3.11 \
build
jdhunter@...2795...:mpl> make -f make.osx fetch
python2.6 -c 'import urllib;
urllib.urlretrieve("http://superb-sea2.dl.sourceforge.net/project/libpng/zlib/1.2.3/zlib-1.2.3.tar.gz&quot;,
"zlib-1.2.3.tar.gz")' &&\
python2.6 -c 'import urllib;
urllib.urlretrieve("LIBPNG: PNG reference library - Browse Files at SourceForge.net,
"libpng-1.2.39.tar.gz")' &&\
python2.6 -c 'import urllib;
urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2&quot;,
"freetype-2.3.11.tar.bz2")'
jdhunter@...2795...:mpl> tar xvfz zlib-1.2.3.tar.gz|head
zlib-1.2.3/
zlib-1.2.3/adler32.c
zlib-1.2.3/algorithm.txt
zlib-1.2.3/amiga/
zlib-1.2.3/amiga/Makefile.pup
zlib-1.2.3/amiga/Makefile.sas
zlib-1.2.3/as400/
zlib-1.2.3/as400/bndsrc
zlib-1.2.3/as400/compile.clp
zlib-1.2.3/as400/readme.txt
jdhunter@...2795...:mpl> tar xvfz libpng-1.2.39.tar.gz |head
libpng-1.2.39/
libpng-1.2.39/pngpread.c
libpng-1.2.39/pngnow.png
libpng-1.2.39/README
libpng-1.2.39/config.guess
libpng-1.2.39/TODO
libpng-1.2.39/pngrtran.c
libpng-1.2.39/pngwutil.c
libpng-1.2.39/configure
libpng-1.2.39/pngtest.c
jdhunter@...2795...:mpl> tar tvfj freetype-2.3.11.tar.bz2 |head
tar: Record size = 8 blocks
drwxr-xr-x wl/users 0 2009-10-10 11:37 freetype-2.3.11/
-rw-r--r-- wl/users 35819 2009-03-14 06:45 freetype-2.3.11/vms_make.com
-rw-r--r-- wl/users 91573 2009-03-14 06:45 freetype-2.3.11/ChangeLog.20
-rw-r--r-- wl/users 236 2009-03-14 06:45 freetype-2.3.11/version.sed
-rw-r--r-- wl/users 1469 2009-03-14 06:45 freetype-2.3.11/Jamrules
-rw-r--r-- wl/users 5687 2009-10-10 11:21 freetype-2.3.11/Jamfile
-rwxr-xr-x wl/users 3573 2009-07-03 06:28 freetype-2.3.11/configure
drwxr-xr-x wl/users 0 2009-10-10 11:37 freetype-2.3.11/docs/
-rw-r--r-- wl/users 1260 2009-03-14 06:45 freetype-2.3.11/docs/LICENSE.TXT
drwxr-xr-x wl/users 0 2009-10-10 11:37 freetype-2.3.11/docs/reference/

Dear John and George,

I am happy to report that everything is now working!
The latest SVN patch fixed the fetch problem and a complete removal of
my custom compiled libpng and libfreetype2 followed by:

sudo make -f make.osx fetch deps mpl_build mpl_install
sudo python setup.py install

did the rest.

Thank you for all your help!

Kind regards,

Pim Schellart

P.S. I am looking forward to seeing 64 binaries for Python 2.6/2.7 and
numpy/scipy/matplotlib on OSX 10.6 at some point in the future :slight_smile:

Well, now you can make them yourself :slight_smile:

  > make -f make.osx binaries

But we will try to get some official ones out in the near future.

JDH

···

On Wed, May 26, 2010 at 10:47 AM, Pim Schellart <p.schellart@...287...> wrote: