def libs(self): """Discover libraries in platlib.""" # Remove py- prefix in package name library = 'lib' + self.spec.name[3:].replace('-', '?') root = inspect.getmodule(self).platlib for shared in [True, False]: libs = find_libraries(library, root, shared=shared, recursive=True) if libs: return libs msg = 'Unable to recursively locate {} libraries in {}' raise NoLibrariesError(msg.format(self.spec.name, root))
def libs(self): lib_path = join_path(self.component_path, 'lib', 'intel64') lib_path = lib_path if isdir(lib_path) else dirname(lib_path) return find_libraries('*', root=lib_path, shared=True, recursive=True)