def _install_tool(env, name, version, requirement_name, bin_dirs=["bin"], env_vars={}, tool_install_dir=None):
    tool_env = _build_tool_env(env, requirement_name, version, tool_install_dir)
    env.logger.debug("Installing a Galaxy tool via 'install_%s'" % name)
    eval("install_%s" % name)(tool_env)
    _install_galaxy_config(tool_env, bin_dirs, env_vars=env_vars)
    return tool_env
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/galaxy/tools.py/_install_tool/original