summaryrefslogtreecommitdiff
blob: e02e03e65edbe1909bd8115eef7100b5405366be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: matplotlib-3.1.2/setupext.py
===================================================================
--- matplotlib-3.1.2.orig/setupext.py
+++ matplotlib-3.1.2/setupext.py
@@ -839,14 +839,7 @@ class Qhull(SetupPackage):
     name = "qhull"
 
     def add_flags(self, ext):
-        # Qhull doesn't distribute pkg-config info, so we have no way of
-        # knowing whether a system install is recent enough.  Thus, always use
-        # the vendored version.
-        ext.include_dirs.insert(0, 'extern')
-        ext.sources.extend(sorted(glob.glob('extern/libqhull/*.c')))
-        if sysconfig.get_config_var('LIBM') == '-lm':
-            ext.libraries.extend('m')
-
+        ext.libraries.extend(['qhull'])
 
 class TTConv(SetupPackage):
     name = "ttconv"