@@ -64,12 +64,12 @@ install matplotlib using pip_::
6464 python -m pip install matplotlib
6565
6666In case Python 2.7 or 3.4 are not installed for all users,
67- the Microsoft Visual C++ 2008 (
68- `64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=15336>`__
67+ the Microsoft Visual C++ 2008
68+ ( `64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=15336>`__
6969or
7070`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=29>`__
71- for Python 2.7) or Microsoft Visual C++ 2010 (
72- `64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=14632>`__
71+ for Python 2.7) or Microsoft Visual C++ 2010
72+ ( `64 bit <https://www.microsoft.com/en-us/download/details.aspx?id=14632>`__
7373or
7474`32 bit <https://www.microsoft.com/en-us/download/details.aspx?id=5555>`__
7575for Python 3.4) redistributable packages need to be installed.
@@ -106,14 +106,15 @@ or example code.
106106If you want to try the many demos that come in the matplotlib source
107107distribution, download the :file:`*.tar.gz` file and look in the
108108:file:`examples` subdirectory.
109- To run the test suite, copy the :file:`lib\\matplotlib\\tests` and
110- :file:`lib\\mpl_toolkits\\tests` directories from the source
111- distribution to :file:`sys.prefix\\Lib\\site-packages\\matplotlib` and
112- :file:`sys.prefix\\Lib\\site-packages\\mpl_toolkits` respectively, and
113- install `nose <https://pypi.python.org/pypi/nose>`_, `mock
114- <https://pypi.python.org/pypi/mock>`_, Pillow, MiKTeX, GhostScript,
115- ffmpeg, avconv, mencoder, ImageMagick, and `Inkscape
116- <https://inkscape.org/>`_.
109+ To run the test suite:
110+
111+ * extract the :file:`lib\\matplotlib\\tests` or
112+ :file:`lib\\mpl_toolkits\\tests` directories from the source distribution;
113+ * install test dependencies: `pytest <https://pypi.python.org/pypi/pytest>`_,
114+ `mock <https://pypi.python.org/pypi/mock>`_, Pillow, MiKTeX, GhostScript,
115+ ffmpeg, avconv, mencoder, ImageMagick, and `Inkscape
116+ <https://inkscape.org/>`_;
117+ * run ``py.test path\\to\\tests\\directory``.
117118
118119
119120
@@ -133,13 +134,15 @@ latest git version :ref:`install-from-git`.
133134The standard environment variables `CC`, `CXX`, `PKG_CONFIG` are respected.
134135This means you can set them if your toolchain is prefixed. This may be used for
135136cross compiling.
137+ ::
136138
137139 export CC=x86_64-pc-linux-gnu-gcc
138140 export CXX=x86_64-pc-linux-gnu-g++
139141 export PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config
140142
141143Once you have satisfied the requirements detailed below (mainly
142- python, numpy, libpng and freetype), you can build matplotlib::
144+ python, numpy, libpng and freetype), you can build matplotlib.
145+ ::
143146
144147 cd matplotlib
145148 python setup.py build
@@ -222,7 +225,7 @@ Required Dependencies
222225Dependencies for python 2
223226^^^^^^^^^^^^^^^^^^^^^^^^^
224227
225- `functools32 <https://pypi.python.org/pypi/functools32 >`_
228+ `backports.functools_lru_cache <https://pypi.python.org/pypi/backports.functools_lru_cache >`_
226229 Required for compatibility if running on Python 2.7.
227230
228231`subprocess32 <https://pypi.python.org/pypi/subprocess32/>`_
0 commit comments