8000 Merge pull request #17831 from tacaswell/aix_system_freetype · matplotlib/matplotlib@dbea6f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit dbea6f8

Browse files
authored
Merge pull request #17831 from tacaswell/aix_system_freetype
BLD: default to system freetype on AIX
2 parents b2a11c7 + 6b808d1 commit dbea6f8

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

INSTALL.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,13 @@ etc., you can install the following:
198198
FreeType and Qhull
199199
------------------
200200

201-
Matplotlib depends on `FreeType <https://www.freetype.org/>`_ (>= 2.3), a
202-
font rendering library, and on `Qhull <http://www.qhull.org/>`_ (>= 2015.2),
203-
a library for computing triangulations. By default, Matplotlib downloads and
204-
builds its own copy of FreeType (this is necessary to run the test suite,
205-
because different versions of FreeType rasterize characters differently), and
206-
uses its own copy of Qhull.
201+
Matplotlib depends on `FreeType <https://www.freetype.org/>`_ (>=
202+
2.3), a font rendering library, and on `Qhull
203+
<http://www.qhull.org/>`_ (>= 2015.2), a library for computing
204+
triangulations. By default (except on AIX) Matplotlib downloads and
205+
builds its own copy of FreeType (this is necessary to run the test
206+
suite, because different versions of FreeType rasterize characters
207+
differently), and uses its own copy of Qhull.
207208

208209
To force Matplotlib to use a copy of FreeType or Qhull already installed in
209210
your system, create a :file:`setup.cfg` file with the following contents:

setupext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def download_or_cache(url, sha):
137137
config.read(setup_cfg)
138138
options = {
139139
'backend': config.get('rc_options', 'backend', fallback=None),
140-
'system_freetype': config.getboolean('libs', 'system_freetype',
141-
fallback=False),
140+
'system_freetype': config.getboolean(
141+
'libs', 'system_freetype', fallback=sys.platform.startswith('aix')),
142142
'system_qhull': config.getboolean('libs', 'system_qhull',
143143
fallback=False),
144144
}

0 commit comments

Comments
 (0)
0