@@ -109,7 +109,6 @@ Dependencies
109
109
Matplotlib requires the following dependencies:
110
110
111
111
* `Python <https://www.python.org/downloads/ >`_ (>= 3.6)
112
- * `FreeType <https://www.freetype.org/ >`_ (>= 2.3)
113
112
* `NumPy <http://www.numpy.org >`_ (>= 1.11)
114
113
* `setuptools <https://setuptools.readthedocs.io/en/latest/ >`_
115
114
* `cycler <http://matplotlib.org/cycler/ >`_ (>= 0.10.0)
@@ -154,24 +153,27 @@ etc., you can install the following:
154
153
* `LaTeX <https://miktex.org/ >`_ and `GhostScript (>=9.0)
155
154
<https://ghostscript.com/download/> `_ : for rendering text with LaTeX.
156
155
157
- FreeType
158
- --------
156
+ FreeType and Qhull
157
+ ------------------
159
158
160
- Matplotlib depends on FreeType, a font rendering library. By default,
161
- Matplotlib downloads and builds its own copy of FreeType.
159
+ Matplotlib depends on `FreeType <https://www.freetype.org/ >`_ (>= 2.3), a
160
+ font rendering library, and on `Qhull <http://www.qhull.org/ >`_ (>= 2015.2),
161
+ a library for computing triangulations. By default, Matplotlib downloads and
162
+ builds its own copy of FreeType, and uses its own copy of Qhull.
162
163
163
- To force Matplotlib to use a copy of FreeType already installed in your system,
164
- create a :file: `setup.cfg ` file with the following contents:
164
+ To force Matplotlib to use a copy of FreeType or Qhull already installed in
165
+ your system, create a :file: `setup.cfg ` file with the following contents:
165
166
166
167
.. code-block :: cfg
167
168
168
169
[libs]
169
170
system_freetype = true
171
+ system_qhull = true
170
172
171
173
before running ``python -m pip install . ``.
172
174
173
- In this case, you need to install the FreeType library and headers. This can
174
- be achieved using a package manager:
175
+ In this case, you need to install the FreeType and Qhull library and headers.
176
+ This can be achieved using a package manager, e.g. for FreeType :
175
177
176
178
.. code-block :: sh
177
179
@@ -181,6 +183,8 @@ be achieved using a package manager:
181
183
brew install freetype # macOS with Homebrew
182
184
conda install freetype # conda, any OS
183
185
186
+ (adapt accordingly for Qhull).
187
+
184
188
On Linux and macOS, it is also recommended to install pkg-config _, a helper
185
189
tool for locating FreeType:
186
190
@@ -197,7 +201,7 @@ tool for locating FreeType:
197
201
.. _pkg-config : https://www.freedesktop.org/wiki/Software/pkg-config/
198
202
199
203
If not using pkg-config (in particular on Windows), you may need to set the
200
- include path (to the FreeType headers) and link path (to the FreeType library )
204
+ include path (to the library headers) and link path (to the libraries )
201
205
explicitly, if they are not in standard locations. This can be done using
202
206
standard environment variables -- on Linux and OSX:
203
207
@@ -215,10 +219,9 @@ and on Windows:
215
219
216
220
.. note ::
217
221
218
- The following libraries are shipped with Matplotlib :
222
+ Matplotlib always uses its own copies of the following libraries :
219
223
220
224
- ``Agg ``: the Anti-Grain Geometry C++ rendering engine;
221
- - ``qhull ``: to compute Delaunay triangulation;
222
225
- ``ttconv ``: a TrueType font utility.
223
226
224
227
Building on Windows
0 commit comments