Python 2.6.2 installation?

Hello,

I have compiled Matplotlib 0.98.5.3 for Python 2.6 for Windows 32-bit using Visual Studio 2008. The build process was straightforward and the produced binaries work for me, specifically there is no crash in _png.pyd when writing PNG files.

<http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.5.3.win32-py2.6.zip>

Use at your own risk. To install, remove previous installations of matplotlib and unzip the file to C:\Python26\Lib\site-packages.

Sources used:
Matplotlib svn v0_98_5_maint rev 7211
Freetype 2.3.9
Libpng 1.2.37
Zlib 1.2.3
Python 2.6.2 from python.org
NumPy 1.3.0 from scipy.org
wxPython 2.8.10.1 from wxpython.org

Regards,

Christoph

Thanks for this link -- the problem I am experiencing is specific to
the mingw compiler suite, so the visual studio build should work fine.
Would you be willing to build a bdist installer and an egg for us
while we are trying to sort the mingw problems out -- I think all you
need to do is pass bdist_wininst and bdist_egg to your build command.

JDH

···

On Fri, Jun 12, 2009 at 2:20 PM, Christoph Gohlke<cgohlke@...2143...> wrote:

Hello,

I have compiled Matplotlib 0.98.5.3 for Python 2.6 for Windows 32-bit
using Visual Studio 2008. The build process was straightforward and the
produced binaries work for me, specifically there is no crash in
_png.pyd when writing PNG files.

Here are the Windows installer and egg produced by "setup.py bdist_wininst" respectively "setupegg.py bdist_egg":

<http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.5.3.win32-py2.6.exe.zip&gt;

<http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.5.3_r0-py2.6-win32.egg.zip&gt;

The installer worked for me. I have not run the unit tests.

Here's the build output:

···

============================================================================
BUILDING MATPLOTLIB
             matplotlib: 0.98.5.3
                 python: 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC
                         v.1500 32 bit (Intel)]
               platform: win32
        Windows version: (6, 0, 6002, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
                  numpy: 1.3.0
              freetype2: found, but unknown version (no pkg-config)
                         * WARNING: Could not find 'freetype2' headers in any
                         * of '.', '.\freetype2'.

OPTIONAL BACKEND DEPENDENCIES
                 libpng: found, but unknown version (no pkg-config)
                         * Could not find 'libpng' headers in any of '.'
                Tkinter: no
                         * Tkinter present, but header files are not found.
                         * You may need to install development packages.
               wxPython: 2.8.10.1
                         * WxAgg extension not required for wxPython >= 2.8
                   Gtk+: no
                         * Building for Gtk+ requires pygtk; you must be able
                         * to "import gtk" in your build/install environment
        Mac OS X native: no
                     Qt: no
                    Qt4: Qt: 4.5.1, PyQt4: 4.5
                  Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
               datetime: present, version unknown
               dateutil: matplotlib will provide
                   pytz: 2009d

OPTIONAL USETEX DEPENDENCIES
                 dvipng: no
            ghostscript: no
                  latex: no
                pdftops: no

[Edit setup.cfg to suppress the above messages]

Hope it helps.

Christoph

On 06/12/2009 12:45, John Hunter wrote:

Thanks for this link -- the problem I am experiencing is specific to
the mingw compiler suite, so the visual studio build should work fine.
  Would you be willing to build a bdist installer and an egg for us
while we are trying to sort the mingw problems out -- I think all you
need to do is pass bdist_wininst and bdist_egg to your build command.

JDH

Thanks Christoph -- I've uploaded these to the sf site. After the
next trunk release, I may ask you again to provide some visual studio
builds if you have the time, since the mingw/python2.6 problems have
not been solved yet.

JDH

···

On Fri, Jun 12, 2009 at 6:44 PM, Christoph Gohlke<cgohlke@...2143...> wrote:

Here are the Windows installer and egg produced by "setup.py bdist_wininst"
respectively "setupegg.py bdist_egg":