From 29839f5a883c66579006599a1dfe8d1f31ccb85b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 3 Jul 2020 21:57:18 -0400 Subject: [PATCH] Backport PR #17831: BLD: default to system freetype on AIX --- INSTALL.rst | 13 +++++++------ setupext.py | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/INSTALL.rst b/INSTALL.rst index 7b1d6e77f533..a2552a2cd493 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -170,12 +170,13 @@ etc., you can install the following: FreeType and Qhull ------------------ -Matplotlib depends on `FreeType `_ (>= 2.3), a -font rendering library, and on `Qhull `_ (>= 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 `_ (>= +2.3), a font rendering library, and on `Qhull +`_ (>= 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: diff --git a/setupext.py b/setupext.py index 4a838eedd52f..19c2868bda32 100644 --- a/setupext.py +++ b/setupext.py @@ -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), }