def _install_pkg(env, pkg_str, brew_cmd, ipkgs):
    pkg, version, args = _get_pkg_version_args(pkg_str)
    installed = False
    if version:
        _install_pkg_version(env, pkg, args, version, brew_cmd, ipkgs)
        installed = True
    if pkg in BOTTLE_SUPPORTED and not env.distribution == "macosx":
        installed = _install_bottle(env, brew_cmd, pkg, ipkgs)
    if not installed:
        _install_pkg_latest(env, pkg, args, brew_cmd, ipkgs)
Normalize and filter extracted links
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/package/brew.py/_install_pkg--crossover with--dataset/ETHPy150Open wcong/ants/ants/contrib/linkextractors/sgml.py/BaseSgmlLinkExtractor._process_links