def METHOD_NAME(dist, requires):
    import pkg_resources  # Delay import to avoid unnecessary side-effects
    _DeprecatedInstaller.warn(stacklevel=3)
    _warn_wheel_not_available(dist)
    resolved_dists = pkg_resources.working_set.resolve(
        _reqs.parse(requires, pkg_resources.Requirement),  # required for compatibility
        installer=partial(_fetch_build_egg_no_warn, dist),  # avoid warning twice
        replace_conflicting=True,
    )
    for dist in resolved_dists:
        pkg_resources.working_set.add(dist, replace=True)
    return resolved_dists