def is_installed(self, environ, version=None, strict=False): lib_config.is_installed(self, environ, version, strict) if self.found: self.environment['GSL_LIBRARIES'] += ['gslcblas'] lib_file = self.environment['GSL_LIB_FILES'][0] pre, post = lib_file.split('gsl') self.environment['GSL_LIB_FILES'] += [pre + 'gslcblas' + post] return self.found
def is_installed(self, environ, version=None, strict=False): self.found = lib_config.is_installed(self, environ, version, strict) if self.found: lib_dir = self.environment.get('LLVM_LIB_DIR', '') ## llvmpy *requires* RTTI flag, so system version will not work if lib_dir.endswith('llvm'): lib_dir = os.path.dirname(lib_dir) base_dir = os.path.dirname(lib_dir) if base_dir == '' or base_dir == '/usr': self.found = False return self.found ## LLVM_CONFIG_PATH is needed by llvmpy try: self.environment['LLVM_CONFIG_PATH'] = \ find_program('llvm-config', [os.path.dirname(lib_dir)], limit=True) except ConfigError: self.found = False return self.found