@@ -112,6 +112,9 @@ necessary to run the test suite, because different versions of FreeType
112112rasterize characters differently) and of Qhull. As an exception, Matplotlib
113113defaults to the system version of FreeType on AIX.
114114
115+ Use system libraries
116+ ~~~~~~~~~~~~~~~~~~~~
117+
115118To force Matplotlib to use a copy of FreeType or Qhull already installed in
116119your system, create a :file: `mplsetup.cfg ` file with the following contents:
117120
@@ -121,7 +124,16 @@ your system, create a :file:`mplsetup.cfg` file with the following contents:
121124 system_freetype = true
122125 system_qhull = true
123126
124- before running ``python -m pip install . ``.
127+ before running
128+
129+ .. code-block :: sh
130+
131+ python -m pip install .
132+
133+
134+ You can also use the :envvar: `MPLSETUPCFG ` to specify the path to a cfg file when
135+ installing from pypi.
136+
125137
126138In this case, you need to install the FreeType and Qhull library and headers.
127139This can be achieved using a package manager, e.g. for FreeType:
@@ -174,6 +186,23 @@ remember to clear your artifacts before re-building::
174186 git clean -xfd
175187
176188
189+ Manual Download
190+ ~~~~~~~~~~~~~~~
191+
192+
193+ If the automatic download does not work (for example on air-gapped systems) it
194+ is preferable to instead use system libraries. However you can manually
195+ download and unpack the tarballs into::
196+
197+ build/freetype-2.6.1 # on all platforms but windows ARM64
198+ build/freetype-2.11.1 # on windows ARM64
199+ build/qhull-2020.2
200+
201+ at the top level of the checkout repository. The expected sha256 hashes of
202+ the downloaded tarballs is in :file: `setupext.py ` if you wish to verify
203+ before unpacking.
204+
205+
177206Minimum pip / manylinux support (linux)
178207---------------------------------------
179208
0 commit comments