I am cc'ing the dev list for archival reasons.
I prefer the VS2003 build for several reasons. It is faster to build. The resulting code is faster and smaller too. This is due to Microsoft's compiler just being better than gcc. The process is not necessarily easier either way though. I will try to outline the steps from memory here, but definitely check out the information in the header of setupext.py and in the zip win32_static* files.
Install the latest 8.4 release of ActiveTCL into "C:\Tcl".
Install the lastest 2.10 version of the win32 gtk dev package into "C:\GTK". You can get these here "http://sourceforge.net/projects/gladewin32/"\. gtk-2.12 does not work.
Install the latest 2.10 versions of pygtk.
GTK is a little off when it comes to pkg-config, so if you want the gtk backend I'll have to give you some more information. I am happy to do this, but it is late for me so I am just holding off right now.
WX is native python now, so nothing special is needed.
Obviously have numpy-1.1 installed.
This setup is the same for python 2.4 and 2.5.
Since you are going to be using svn, just extract the win32_static_vs.zip (for VS2003) in you matplotib folder. You should then have a win32_static folder in there.
Building a package is as simple as:
C:\Python25\python.exe setup.py build --compiler=msvc bdist_wininst
C:\Python25\python.exe setupegg.py build --compiler=msvc bdist_egg
If you want to use mingw, that just involves installing mingw to "C:\mingw" and using the win32_static.zip instead of the vs version.
Let me know how it goes,
On Jun 5, 2008, at 1:28 PM, Stan West wrote:
Thank you for the prompt reply. I have both compilers and have little
preference between them at the outset. Are there significant differences in
either the build process or the result that I should consider?
From: Charlie Moad [mailto:cwmoad@…149…]
Sent: Thursday, June 05, 2008 12:30
To: Stan West
Subject: Re: Building matplotlib on Windows
I should first ask if you are planning to build with mingw or visual studio
On Thu, Jun 5, 2008 at 11:09 AM, Stan West <stan.west@...595...> > wrote:
Greetings. I gather from the matplotlib mailing lists that you're the
expert on building it under Windows. I'd like to learn how to do that
to benefit from bug-fixes. What's involved? I started gathering the
dependencies mentioned in the COMPILING section of the INSTALL file.
That lead me to setupext.py, which led me to win32_static, where I
found files intended for Python 2.2 to 2.4. Figuring from that that
some of the build information might be outdated, I decided to contact
you directly and ask about the current state of things. I would appreciate
any help you can offer.
Stan West, Ph.D.
U.S. NAVAL RESEARCH LABORATORY