code: def _filter_names(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
docs: Given a list of file names, return those names that should be copied.