From 6b808d13251f4d263ecf53c1e94a90481f5112fe Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 3 Jul 2020 19:28:48 -0400 Subject: [PATCH] BLD: default to system freetype on AIX Our internal freetype build fails due to incorrect compiler flags. The easy path to make sure AIX users will be able to pip install is to default to system freetype when on AIX. closes #17829 --- INSTALL.rst | 13 +++++++------ setupext.py | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/INSTALL.rst b/INSTALL.rst index cb49e4033dd0..d7d4ff594c8b 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -198,12 +198,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 3a6d6c1e412c..21bec048bdd4 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), }