def _filterNames(names):
    names = [n for n in names
             if n not in EXCLUDE_NAMES]
    # This is needed when building a distro from a working
    # copy (likely a checkout) rather than a pristine export:
    for pattern in EXCLUDE_PATTERNS:
        names = [n for n in names
                 if (not fnmatch.fnmatch(n, pattern))
                 and (not n.endswith('.py'))]
    return names
Given a list of file names, return those names that should be copied.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/dist.py/_filterNames