Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 6a36667

Browse files
committed
Allow Matplotlib to use system qhull >= 7.2.0
My system has qhull 8.0.0 installed. Because Matplotlib doesn't know about my system qhull it builds its own version. This can cause runtime issues with Matplotlib trying to call the wrong qhull library. For example, this fixes the error that ./sage -tp 8 --long --warn-long 31.1 --random-seed=0 src/sage/plot/plot3d/list_plot3d.py produces QH6249 qh_lib_check: Incorrect qhull library called. Size of qhT for caller is 2896, but for library is 2792. QH6256 qh_lib_check: Cannot continue. Library 'qhull 7.2.0 (2015.2 2016/01/18)' uses a static qhT (e.g., libqhull.so) if the system has qhull 8.0.0 installed.
1 parent f7d1ed5 commit 6a36667

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/pkgs/matplotlib/make-setup-config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from configparser import ConfigParser
2+
import pkgconfig
23
import os
34

45
config = ConfigParser()
@@ -8,6 +9,8 @@
89

910
config.add_section('libs')
1011
config.set('libs', 'system_freetype', 'True')
12+
if pkgconfig.installed('qhull', '>= 7.2.0'):
13+
config.set('libs', 'system_qhull', 'True')
1114
# lto is problematic if we mix libraries from the OS with our own libraries,
1215
# which are not necessarily compiled with the same gcc version
1316
# https://trac.sagemath.org/ticket/27754

0 commit comments

Comments
 (0)