error on build on windows from SVN

I’m having problems building matplotlib on windows from a folder from SVN, and haven’t done it
before (previously had used the prebuilt binary download). I don’t know what I am doing wrong.
I’m on winXP, Python 2.5. and will be using wxPython 2.8.4.2 with matplotlib as well.

The folder with the contents from SVN I’ve named matplotlib_svn. From the cmd line and
while in that directory I wrote

python setup.py build

and got what follows. I’m not sure what I am to do (regarding finding an appropriate
compiler). Any help is appreciated.

C:\Python25\Lib\site-packages\matplotlib_svn>python setup.py build

···

============================================================================
BUILDING MATPLOTLIB
matplotlib: 0.90.1
python: 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310
32 bit (Intel)]
platform: win32
Windows version: (5, 1, 2600, 2, ‘Service Pack 2’)

REQUIRED DEPENDENCIES
numpy: 1.0
freetype2: found, but unknown version (no pkg-config)

                    * WARNING: Could not find 'freetype2' headers in any
                    * of '.', '.\freetype2'.

OPTIONAL DEPENDENCIES
Gtk+: no
* Building for Gtk+ requires pygtk; you must be able

                    * to "import gtk" in your build/install environment
           Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
                    * Tkinter present, but header files are not

                    * installed.  You may need to install development
                    * packages.
          wxPython: [2.8.4.2](http://2.8.4.2)
                    * WxAgg extension not required for wxPython >= 2.8
                Qt: no
               Qt4: no
             Cairo: no
            libpng: found, but unknown version (no pkg-config)
                    * Could not find 'libpng' headers in any of '.'

[Edit setup.cfg to suppress the above messages]

running build
running build_py
copying lib\matplotlib\mpl-data\matplotlibrc -> build\lib.win32-
2.5\matplotlib\m
pl-data
running build_ext
No module named msvccompiler in numpy.distutils, trying from distutils…
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.

Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing “-c mingw32” to setup.py.

Read the header of setupext.py, particularly the part for win32 users
-- it may not be totally current, but will get much you closer to your
goal. Once you have followed the steps there, if you hit another
roadblock check back here and we will advise further and try and
update the docs as necessary. You are actually in the best position
to write documentation, since you are hitting this for the first time,
so please take notes and/or update the instructions in setupext.py so
we can add them to the docs.

Thanks,
JDH

···

On 9/24/07, C M <cmpython@...287...> wrote:

I'm having problems building matplotlib on windows from a folder from SVN,
and haven't done it
before (previously had used the prebuilt binary download). I don't know
what I am doing wrong.