--- setupext.py.orig 2019-02-25 21:07:47.000000000 -0500 +++ setupext.py 2019-02-27 23:27:59.000000000 -0500 @@ -1406,23 +1406,10 @@ def check(self): self.__class__.found_external = True - try: - return self._check_for_pkg_config( - 'libqhull', 'libqhull/qhull_a.h', min_version='2015.2') - except CheckFailed as e: - self.__class__.found_pkgconfig = False - self.__class__.found_external = False - return str(e) + ' Using local copy.' + return ' Using copy installed by MacPorts.' def add_flags(self, ext): - if self.found_external: - pkg_config.setup_extension(ext, 'qhull', - default_libraries=['qhull']) - else: - 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.append('qhull') class TTConv(SetupPackage):