metis/parmetis/boost/oce/scalapack: correct install_name on Darwin via a global function.

This commit is contained in:
Denis Davydov
2016-03-27 08:59:25 +02:00
parent 42ec822379
commit 7eca1284c8
6 changed files with 76 additions and 27 deletions

View File

@@ -41,6 +41,11 @@ def install(self, spec, prefix):
make()
make("install")
# The shared libraries are not installed correctly on Darwin; correct this
if (sys.platform == 'darwin') and ('+shared' in spec):
fix_darwin_install_name(prefix.lib)
def setup_dependent_package(self, module, dependent_spec):
spec = self.spec
lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so'