parameters: (self)
docstring: Copy data files into build directory
docstring_summary: Copy data files into build directory
docstring_tokens: Copy data files into build directory
function: def build_package_data(self):
          """Copy data files into build directory"""
          for package, src_dir, build_dir, filenames in self.data_files:
              for filename in filenames:
                  target = os.path.join(build_dir, filename)
                  self.mkpath(os.path.dirname(target))
                  srcfile = os.path.join(src_dir, filename)
                  outf, copied = self.copy_file(srcfile, target)
                  make_writable(target)
                  srcfile = os.path.abspath(srcfile)
                  if (copied and
                          srcfile in self.distribution.convert_2to3_doctests):
                      self.__doctests_2to3.append(outf)
function_tokens: def build_package_data ( self ) : for package , src_dir , build_dir , filenames in self . data_files : for filename in filenames : target = os . path . join ( build_dir , filename ) self . mkpath ( os . path . dirname ( target ) ) srcfile = os . path . join ( src_dir , filename ) outf , copied = self . copy_file ( srcfile , target ) make_writable ( target ) srcfile = os . path . abspath ( srcfile ) if ( copied and srcfile in self . distribution . convert_2to3_doctests ) : self . __doctests_2to3 . append ( outf )