def build_package_data(self):
lastdir = None<EOL>for package, src_dir, build_dir, filenames in self.data_files:<EOL><INDENT>for filename in filenames:<EOL><INDENT>target = os.path.join(build_dir, filename)<EOL>self.mkpath(os.path.dirname(target))<EOL>srcfile = os.path.join(src_dir, filename)<EOL>outf, copied = self.copy_file(srcfile, target)<EOL>srcfile = os.path.abspath(srcfile)<EOL>if copied and srcfile in self.distribution.convert_2to3_doctests:<EOL><INDENT>self.__doctests_2to3.append(outf)<EOL><DEDENT><DEDENT><DEDENT>
Copy data files into build directory