Prepare paths for distlib.wheel.Wheel to install into.

def _build_paths(venv=None):
    """Prepare paths for distlib.wheel.Wheel to install into.
    """
    if venv:
        paths = venv.paths
    else:
        paths = sysconfig.get_paths()
    return {
        "prefix": sys.prefix if not venv else venv.venv_dir.as_posix(),
        "data": paths["data"],
        "scripts": paths["scripts"],
        "headers": paths["include"],
        "purelib": paths["purelib"],
        "platlib": paths["platlib"],
    }