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