oot_is_purelib = True
        for zipinfo in bdw.infolist():
            if zipinfo.filename.startswith("PLATLIB"):
                root_is_purelib = False
                break
        if root_is_purelib:
            paths = {"purelib": ""}
        else:
            paths = {"platlib": ""}

        dist_info = "%(name)s-%(ver)s" % info
        datadir = "%s.data/" % dist_info

        # rewrite paths to trick ZipFile into extracting an egg
        # XXX grab wininst .ini - between .exe, padding, and first zip file.
        members = []
        egginfo_name = ""
        for zipinfo in bdw.infolist():
            key, basename = zipinfo.filename.split("/", 1)
            key = key.lower()
            basepath = paths.get(key, None)
            if basepath is None:
                basepath = datadir + key.lower() + "/"
            oldname = zipinfo.filename
            newname = basepath + basename
            zipinfo.filename = newname
            del bdw.NameToInfo[oldname]
            bdw.NameToInfo[newname] = zipinfo
            # Collect member names, but omit '' (from an entry like "PLATLIB/"
            if newname:
                members.append(newname)
            # Remember egg-info name for the egg2dist call below
            if not egginfo_name:
                if newname.endswith(".egg-info"):
                    egginfo_name = newname
                elif ".egg-info/" in newname:
                    egginfo_name, sep, _ = newname.rpartition("/")
        dir = tempfile.mkdtemp(suffix="_b2w")
        bdw.extractall(dir, members)

    # egg2wheel
    abi = "none"
    pyver = info["pyver"]
    arch = (info["arch"] or "any").replace(".", "_").replace("-", "_")
    # Wininst installers always have arch even if they are not
    # architecture-specific (because the format itself is).
    # So, assume the content is architecture-neutral if root is purelib.
    if root_is_purelib:
        arch = "any"
    # If the installer is architecture-specific, it's almost certainly also
    # CPython-specific.
    if arch