#NEWLINE# def copy_tree( self , infile , outfile , preserve_mode = 1 , preserve_times = 1 , preserve_symlinks = 0 , level = 1 ) : #NEWLINE# #INDENT# assert ( preserve_mode and preserve_times and ( not preserve_symlinks ) ) #NEWLINE# exclude = self . get_exclusions ( ) #NEWLINE# if ( not exclude ) : #NEWLINE# #INDENT# return orig . install_lib . copy_tree ( self , infile , outfile ) #NEWLINE# #UNINDENT# from setuptools.archive_util import unpack_directory #NEWLINE# from distutils import log #NEWLINE# outfiles = [ ] #NEWLINE# def pf( src , dst ) : #NEWLINE# #INDENT# if ( dst in exclude ) : #NEWLINE# #INDENT# log . warn ( 'Skipping installation of %s (namespace package)' , dst ) #NEWLINE# return False #NEWLINE# #UNINDENT# log . info ( 'copying %s -> %s' , src , os . path . dirname ( dst ) ) #NEWLINE# outfiles . append ( dst ) #NEWLINE# return dst #NEWLINE# #UNINDENT# unpack_directory ( infile , level , pf ) #NEWLINE# return outfiles