Skip to content

Backport PR #17831 on branch v3.3.x (BLD: default to system freetype on AIX) #17833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,13 @@ etc., you can install the following:
FreeType and Qhull
------------------

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

To force Matplotlib to use a copy of FreeType or Qhull already installed in
your system, create a :file:`setup.cfg` file with the following contents:
Expand Down
4 changes: 2 additions & 2 deletions setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def download_or_cache(url, sha):
config.read(setup_cfg)
options = {
'backend': config.get('rc_options', 'backend', fallback=None),
'system_freetype': config.getboolean('libs', 'system_freetype',
fallback=False),
'system_freetype': config.getboolean(
'libs', 'system_freetype', fallback=sys.platform.startswith('aix')),
'system_qhull': config.getboolean('libs', 'system_qhull',
fallback=False),
}
Expand Down