@@ -45,6 +45,8 @@ use to organize this information.
4545
4646Thank you for your help in keeping bug reports complete, targeted and descriptive.
4747
48+ .. _installing_for_devs :
49+
4850Retrieving and installing the latest version of the code
4951========================================================
5052
@@ -84,17 +86,28 @@ you can use ``git@`` instead of ``https://``, which works through the ssh proto
8486and might be easier to use if you are using 2-factor authentication.
8587
8688
87- To make sure the tests run locally you must build against the correct version
88- of freetype. To configure the build system to fetch and build it either export
89- the env ``MPLLOCALFREETYPE `` as::
89+ Building matplotlib for image comparison tests
90+ ----------------------------------------------
9091
91- export MPLLOCALFREETYPE=1
92+ Matplotlib's test suite makes heavy use of image comparison tests,
93+ meaning the result of a plot is compared against a known good result.
94+ Unfortunately, different versions of FreeType produce differently
95+ formed characters, causing these image comparisons to fail. To make
96+ them reproducible, matplotlib can be built with a special local copy
97+ of FreeType. This is recommended for all matplotlib developers.
9298
93- or copy :file: `setup.cfg.template ` to :file: `setup.cfg ` and edit it to contain
94- ::
99+ Copy :file: `setup.cfg.template ` to :file: `setup.cfg ` and edit it to contain::
95100
96101 [test]
97102 local_freetype = True
103+ tests = True
104+
105+ or set the ``MPLLOCALFREETYPE `` environmental variable to any true
106+ value.
107+
108+
109+ Install matplotlib in developer mode
110+ ------------------------------------
98111
99112To install Matplotlib (and compile the c-extensions) run the following
100113command from the top-level directory ::
0 commit comments