#NEWLINE# def exclude_data_files( self , package , src_dir , files ) : #NEWLINE# #INDENT# "Filter filenames for package's data files in 'src_dir'" #NEWLINE# globs = ( self . exclude_package_data . get ( '' , [ ] ) + self . exclude_package_data . get ( package , [ ] ) ) #NEWLINE# bad = [ ] #NEWLINE# for pattern in globs : #NEWLINE# #INDENT# bad . extend ( fnmatch . filter ( self , os . path . join ( src_dir , convert_path ( pattern ) ) ) ) #NEWLINE# #UNINDENT# bad = dict . fromkeys ( bad ) #NEWLINE# seen = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# return [ f for f in files if ( ( f not in bad ) and ( f not in seen ) and seen . setdefault ( f , 1 ) ) ]