def METHOD_NAME(dist, req):
    """Fetch an egg needed for building.
    Use pip/wheel to fetch/build a wheel."""
    _DeprecatedInstaller.warn(stacklevel=2)
    _warn_wheel_not_available(dist)
    return _fetch_build_egg_no_warn(dist, req)