In article 
<1320891765.14646.yahoomailclas...@web161202.mail.bf1.yahoo.com>,
 Michiel de Hoon <mjldeh...@yahoo.com> 
 wrote:

> --- On Wed, 11/9/11, Russell E. Owen <ro...@uw.edu> 
> wrote:
> > There is no matplotlib binary for 64-bit Python yet because
> > I've not 
> > figured out how to build one successfully -- I get horrible
> > conflicts 
> > with Tcl/Tk.
> > 
> Would it be possible to release a matplotlib binary for 64-bit Python using 
> the MacOSX backend instead of tkagg?

It's not hard to build your own 64-bit matplotlib on 10.6 (and I assume 
the instructions are the same on 10.7, but perhaps not). The 
prerequisite libraries are already present. Just make sure you have the 
following installed:
- XCode with gcc 4.2 as the default compiler (one way to change the 
default is using a pair of symlinks in /usr/bin or /usr/local/bin -- one 
for gcc, one for g++)
- Python.org's 64-bit python installed and preferably running as the 
default.

Download and unpack the matplotlib source.
Edit setupext.py and change the entry for darwin to include those two 
directories: /usr/X11 and /usr/lib. 

Then copy setup.cfg.template to setup.cfg and edit setup.cfg to enable 
the backends you want. Be sure to disable TkAgg because it won't build 
properly.

Then build in the usual way:
python setup.py build
python setup.py install

I personally don't think the matplotlib project should serve such a 
product unless and until somebody has time to deal with the Tk linking 
issues, which apparently require editing some resulting libraries (more 
than I want to attempt). But that's just my opinion.

-- Russell


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to