(name: str)
return ["linux_" + "_".join(name.split("_")[1:])]
Extract platform tag replacement rules from policy

    >>> get_replace_platforms('linux_x86_64')
    []
    >>> get_replace_platforms('linux_i686')
    []
    >>> get_replace_platforms('manylinux1_x86_64')
    ['linux_x86_64']
    >>> get_replace_platforms('manylinux1_i686')
    ['linux_i686']
Extract platform tag replacement rules from policy
Extract platform tag replacement rules from policy
def get_replace_platforms(name: str) -> List[str]:
    """Extract platform tag replacement rules from policy

    >>> get_replace_platforms('linux_x86_64')
    []
    >>> get_replace_platforms('linux_i686')
    []
    >>> get_replace_platforms('manylinux1_x86_64')
    ['linux_x86_64']
    >>> get_replace_platforms('manylinux1_i686')
    ['linux_i686']

    """
    if name.startswith("linux"):
        return []
    if name.startswith("manylinux_"):
        return ["linux_" + "_".join(name.split("_")[3:])]
    if name.startswith("musllinux_"):
        return ["linux_" + "_".join(name.split("_")[3:])]
    return ["linux_" + "_".join(name.split("_")[1:])]
def get_replace_platforms ( name : str ) -> List [ str ] : if name . startswith ( "linux" ) : return [ ] if name . startswith ( "manylinux_" ) : return [ "linux_" + "_" . join ( name . split ( "_" ) [ 3 : ] ) ] if name . startswith ( "musllinux_" ) : return [ "linux_" + "_" . join ( name . split ( "_" ) [ 3 : ] ) ] return [ "linux_" + "_" . join ( name . split ( "_" ) [ 1 : ] ) ]