(self)
Copy data files into build directory
Copy data files into build directory
Copy data files into build directory
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)
                srcfile = os.path.abspath(srcfile)
                if (copied and
                        srcfile in self.distribution.convert_2to3_doctests):
                    self.__doctests_2to3.append(outf)
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 ) srcfile = os . path . abspath ( srcfile ) if ( copied and srcfile in self . distribution . convert_2to3_doctests ) : self . __doctests_2to3 . append ( outf )