Hello,

The current matplotlib installers for Windows are built with Microsoft
Visual Studio 2003/2008 compilers. It is relatively easy once you have
all the dependencies and it gives you working binaries for Python 2.4,
2.5, 2.6, and 2.6 64-bit.

I have found the instructions at
<http://matplotlib.sourceforge.net/users/installing.html> and
<http://docs.python.org/install/> sufficient for building matplotlib
from sources. My setup.cfg is attached.

Matplotlib, when compiled with mingw, had some problems saving png
images
<http://www.mail-archive.com/matplotlib-us...@lists.sourceforge.net/msg11791.html>.
Can you save to pdf?

I have not tried libpng-1.2.40, it is three weeks old, but version
1.2.42 works when PNG_DEPRECATED, PNG_USE_RESULT, PNG_NORETURN,
PNG_ALLOCATED, PNG_DEPSTRUCT, PNG_STDIO_SUPPORTED, and
PNG_SEQUENTIAL_READ_SUPPORTED are defined.

I can not reproduce the GTK problems with the latest official matplotlib
0.99.1, pyGTK 2.12.1-3, and GTK 2.16.6 binaries. Are you using the GTK
or GTKAgg backend?

--
Christoph Gohlke
Laboratory for Fluorescence Dynamics
University of California, Irvine
http://www.lfd.uci.edu/~gohlke/


On 1/20/2010 2:21 PM, Patrick Marsh wrote:
> Greetings,
> 
> I recently recreated my development environment on my windows machine
> and have attempted to build MPL off the SVN trunk.  I am able to
> successfully compile and build windows installers using both Python
> 2.5.4 and Python 2.6.4 using MinGW.  However, when I install my builds
> and try to use them I have some issues.
> 
> First, I was unable to build MPL using libpng-1.4.0.  I was forced to
> revert to libpng-1.2.40
> 
> Python 2.5.4
> 1.  After successfully building MPL with GTK support (Yes - I can import
> GTK in my Python interpreter with no problems.), I am unable to show or
> save figures using MPL.  Using IPython, I was able to create the figure
> instance but Python quits when trying to display or save said figure
> instance.
> 
> 2.  After rebuilding MPL without GTK support, I get the same errors.
> 
> 
> Python 2.6.4
> 1.  I am able to display figure instances using MPL build with GTK
> support.  However, when I try to save the figure (in any format) Python
> quits.
> 
> 2.  I get the same behavior when I build MPL without GTK support.
> 
> 
> I have tried building MPL by building the dependencies myself and also
> with using the win32_static/win32_static_mingw32 folders and get the
> same issues either way.  I am hoping whoever is responsible for building
> the windows binaries is willing to work with me to solve these issues.
>  I'd like to be able to build MPL successfully using both Python 2.5.4
> and Python 2.6.4 and then write up a detailed How-To build on Windows.
> 
> Any help would be appreciated.
> 
> Thanks,
> Patrick
# Rename this file to setup.cfg to modify matplotlib's
# build options.

[egg_info]
tag_svn_revision = 1

[status]
# To suppress display of the dependencies and their versions
# at the top of the build log, uncomment the following line:
#suppress = True
#
# Uncomment to insert lots of diagnostic prints in extension code
#verbose = True

[provide_packages]
# By default, matplotlib checks for a few dependencies and
# installs them if missing. This feature can be turned off
# by uncommenting the following lines. Acceptible values are:
#     True: install, overwrite an existing installation
#     False: do not install
#     auto: install only if the package is unavailable. This
#           is the default behavior
#
## Date/timezone support:
pytz = True
dateutil = True
#
## Experimental config package support, this should only be enabled by
## matplotlib developers, for matplotlib development
#enthought.traits = False
#configobj = False

[gui_support]
# Matplotlib supports multiple GUI toolkits, including Cocoa,
# GTK, Fltk, MacOSX, Qt, Qt4, Tk, and WX. Support for many of
# these toolkits requires AGG, the Anti-Grain Geometry library,
# which is provided by matplotlib and built by default.
#
# Some backends are written in pure Python, and others require
# extension code to be compiled. By default, matplotlib checks
# for these GUI toolkits during installation and, if present,
# compiles the required extensions to support the toolkit. GTK
# support requires the GTK runtime environment and PyGTK. Wx
# support requires wxWidgets and wxPython. Tk support requires
# Tk and Tkinter. The other GUI toolkits do not require any
# extension code, and can be used as long as the libraries are
# installed on your system.
#
# You can uncomment any the following lines if you know you do
# not want to use the GUI toolkit. Acceptible values are:
#     True: build the extension. Exits with a warning if the
#           required dependencies are not available
#     False: do not build the extension
#     auto: build if the required dependencies are available,
#           otherwise skip silently. This is the default
#           behavior
#
gtk = True
gtkagg = True
tkagg = True
wxagg = True
macosx = False

[rc_options]
# User-configurable options
#
# Default backend, one of: Agg, Cairo, CocoaAgg, GTK, GTKAgg, GTKCairo,
# FltkAgg, MacOSX, Pdf, Ps, QtAgg, Qt4Agg, SVG, TkAgg, WX, WXAgg.
#
# The Agg, Ps, Pdf and SVG backends do not require external
# dependencies. Do not choose GTK, GTKAgg, GTKCairo, MacOSX, TkAgg or WXAgg
# if you have disabled the relevent extension modules.  Agg will be used
# by default.
#
backend = TkAgg
#
# The numerix module was historically used to provide
# compatibility between the Numeric, numarray, and NumPy array
# packages. Now that NumPy has emerge as the universal array
# package for python, numerix is not really necessary and is
# maintained to provide backward compatibility. Do not change
# this unless you have a compelling reason to do so.
#numerix = numpy
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to