def _safe_link_pkg(env, pkg_str, brew_cmd):
    with settings(warn_only=True):
        with quiet():
            env.safe_run("{brew_cmd} link --overwrite {pkg_str}".format(**locals()))
Link packages required for builds, but not necessarily installed
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/package/brew.py/_safe_link_pkg