@@ -217,9 +217,11 @@ Build requirements
217
217
218
218
These are external packages which you will need to install before
219
219
installing matplotlib. If you are building on OSX, see
220
- :ref:`build_osx`. If you are installing dependencies with a package
221
- manager on Linux, you may need to install the development packages
222
- (look for a "-dev" postfix) in addition to the libraries themselves.
220
+ :ref:`build_osx`. If you are building on Windows, see
221
+ :ref:`build_windows`. If you are installing dependencies with a
222
+ package manager on Linux, you may need to install the development
223
+ packages (look for a "-dev" postfix) in addition to the libraries
224
+ themselves.
223
225
224
226
.. note::
225
227
@@ -263,9 +265,7 @@ six 1.3 or later
263
265
libpng 1.2 (or later)
264
266
library for loading and saving :term:`PNG` files (`download
265
267
<http://www.libpng.org/pub/png/libpng.html>`__). libpng requires
266
- zlib. If you are a Windows user, you can ignore this because we
267
- build support into the matplotlib single-click installer
268
-
268
+ zlib.
269
269
270
270
**Optional GUI frameworks**
271
271
@@ -299,15 +299,12 @@ ImageMagick
299
299
300
300
**Optional dependencies**
301
301
302
- `Pillow http://python-imaging.github.io/`__
302
+ `Pillow < http://python-imaging.github.io/> `__
303
303
If Pillow is installed, matplotlib can read and write a larger
304
304
selection of image file formats.
305
305
306
-
307
306
:term:`freetype` 1.4 (or later)
308
- library for reading true type font files. If you are a windows
309
- user, you can ignore this since we build support into the
310
- matplotlib single click installer.
307
+ library for reading true type font files.
311
308
312
309
**Required libraries that ship with matplotlib**
313
310
@@ -337,3 +334,20 @@ can get the libpng and freetype requirements (darwinports, fink,
337
334
the different OSX version (e.g., 10.4 and 10.5). We recommend that you build
338
335
the way we do for the OSX release: get the source from the tarball or the
339
336
git repository and follow the instruction in :file:`README.osx`.
337
+
338
+ .. _build_windows:
339
+
340
+ Building on Windows
341
+ ======================
342
+
343
+ The Python shipped from http://www.python.org is compiled with Visual Studio
344
+ 2008 for versions before 3.3 and Visual Studio 2010 for 3.3 and later. Python
345
+ extensions are recommended to be compiled with the same compiler. The
346
+ matplotlib :file:`setup.py` looks for the correct version via distutils. The .NET
347
+ Framework 4.0 is required for MSBuild, but you likely already have it. In
348
+ addition to Visual Studio, `CMake <http://www.cmake.org>`_ is required for
349
+ building libpng.
350
+
351
+ Since there is no canonical Windows package manager the build methods for
352
+ freetype, zlib, libpng, tcl, & tk source code are documented as a build script
353
+ at https://github.com/jbmohler/matplotlib-winbuild .
0 commit comments