8000 windows build comments with winbuild repository link · matplotlib/matplotlib@ca0cc62 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca0cc62

Browse files
committed
windows build comments with winbuild repository link
1 parent 4ff936e commit ca0cc62

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

INSTALL

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ Build requirements
217217

218218
These are external packages which you will need to install before
219219
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.
223225

224226
.. note::
225227

@@ -263,9 +265,7 @@ six 1.3 or later
263265
libpng 1.2 (or later)
264266
library for loading and saving :term:`PNG` files (`download
265267
<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.
269269

270270
**Optional GUI frameworks**
271271

@@ -299,15 +299,12 @@ ImageMagick
299299

300300
**Optional dependencies**
301301

302-
`Pillow http://python-imaging.github.io/`__
302+
`Pillow <http://python-imaging.github.io/>`__
303303
If Pillow is installed, matplotlib can read and write a larger
304304
selection of image file formats.
305305

306-
307306
: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.
311308

312309
**Required libraries that ship with matplotlib**
313310

@@ -337,3 +334,20 @@ can get the libpng and freetype requirements (darwinports, fink,
337334
the different OSX version (e.g., 10.4 and 10.5). We recommend that you build
338335
the way we do for the OSX release: get the source from the tarball or the
339336
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 .

doc/faq/installing_faq.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ line script to the appropriate places.
145145
.. note::
146146
Mac OSX users please see the :ref:`build_osx` guide.
147147

148+
Windows users please see the :ref:`build_windows` guide.
149+
148150
Then, if you want to update your matplotlib at any time, just do::
149151

150152
> git pull

0 commit comments

Comments
 (0)
0