'Generate list of \'(package,src_dir,build_dir,filenames)\' tuples'

def get_data_files(self):

    data = []
    if (not self.packages):
        return data
    for package in self.packages:
        src_dir = self.get_package_dir(package)
        build_dir = os.path.join(*([self.build_lib] + package.split('.')))
        plen = 0
        if src_dir:
            plen = (len(src_dir) + 1)
        filenames = [file[plen:] for file in self.find_data_files(package, src_dir)]
        data.append((package, src_dir, build_dir, filenames))
    return data
