def check_dependencies():
    """Ensure required tools for installation are present.
    """
    print("Checking required dependencies...")
    for cmd, url in [("wget", "http://www.gnu.org/software/wget/")]:
        try:
            retcode = subprocess.call([cmd, "--version"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        except __HOLE__:
            retcode = 127
        if retcode == 127:
            raise OSError("gemini requires %s (%s)" % (cmd, url))
        else:
            print(" %s found" % cmd)
dataset/ETHPy150Open arq5x/gemini/gemini/scripts/gemini_install.py/check_dependencies