def _get_data_files(self):
self.analyze_manifest()<EOL>data = []<EOL>for package in self.packages or ():<EOL><INDENT>src_dir = self.get_package_dir(package)<EOL>build_dir = os.path.join(*([self.build_lib] + package.split('<STR_LIT:.>')))<EOL>plen = len(src_dir)+<NUM_LIT:1><EOL>filenames = [<EOL>file[plen:] for file in self.find_data_files(package, src_dir)<EOL>]<EOL>data.append( (package, src_dir, build_dir, filenames) )<EOL><DEDENT>return data<EOL>
Generate list of '(package,src_dir,build_dir,filenames)' tuples