@@ -112,6 +112,9 @@ necessary to run the test suite, because different versions of FreeType
112
112
rasterize characters differently) and of Qhull. As an exception, Matplotlib
113
113
defaults to the system version of FreeType on AIX.
114
114
115
+ Use system libraries
116
+ ~~~~~~~~~~~~~~~~~~~~
117
+
115
118
To force Matplotlib to use a copy of FreeType or Qhull already installed in
116
119
your system, create a :file: `mplsetup.cfg ` file with the following contents:
117
120
@@ -121,7 +124,16 @@ your system, create a :file:`mplsetup.cfg` file with the following contents:
121
124
system_freetype = true
122
125
system_qhull = true
123
126
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
+
125
137
126
138
In this case, you need to install the FreeType and Qhull library and headers.
127
139
This can be achieved using a package manager, e.g. for FreeType:
@@ -174,6 +186,23 @@ remember to clear your artifacts before re-building::
174
186
git clean -xfd
175
187
176
188
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
+
177
206
Minimum pip / manylinux support (linux)
178
207
---------------------------------------
179
208
0 commit comments