def wheel_is_compatible(filename):
    """
    Return True if the wheel is compatible, False otherwise.
    """
    data = parse_wheel_name(filename)
    if ("py2.py3" in data["python_tag"]) or ("py3.py2" in data["python_tag"]):
        # only here to skip elif/else
        pass
    elif six.PY3:
        if not data["python_tag"].startswith("py3"):
            return False
    else:
        if not data["python_tag"].startswith("py2"):
            return False
    if data["abi_tag"].lower() != "none":
        return False
    if data["platform_tag"].lower() != "any":
        return False
    return True

    Return True if the wheel is compatible, False otherwise.
    
lib/stashutils/wheels.py