'Return filenames for package\'s data files in \'src_dir\''

def find_data_files(self, package, src_dir):

    globs = (self.package_data.get('', []) + self.package_data.get(package, []))
    files = []
    for pattern in globs:
        filelist = glob(os.path.join(src_dir, convert_path(pattern)))
        files.extend([fn for fn in filelist if (fn not in files)])
    return files
