def try_tools(): try: yield ExternalCompilationInfo.from_config_tool("ncursesw6-config") except Exception: pass try: yield ExternalCompilationInfo.from_config_tool("ncurses5-config") except Exception: pass try: yield ExternalCompilationInfo.from_pkg_config("ncursesw") except Exception: pass try: yield ExternalCompilationInfo.from_pkg_config("ncursesw") except Exception: pass
def try_tools(): try: yield ExternalCompilationInfo.from_pkg_config("ncurses") except Exception: pass try: yield ExternalCompilationInfo.from_config_tool("ncurses5-config") except Exception: pass
def test_from_config_tool(self): sdlconfig = py.path.local.sysfind('sdl-config') if not sdlconfig: py.test.skip("sdl-config not installed") eci = ExternalCompilationInfo.from_config_tool('sdl-config') assert 'SDL' in eci.libraries