#NEWLINE# def analyze_manifest( self ) : #NEWLINE# #INDENT# self . manifest_files = mf = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( not self . distribution . include_package_data ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# src_dirs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for package in ( self . packages or ( ) ) : #NEWLINE# #INDENT# src_dirs [ assert_relative ( self . get_package_dir ( package ) ) ] = package #NEWLINE# #UNINDENT# self . run_command ( 'egg_info' ) #NEWLINE# ei_cmd = self . get_finalized_command ( 'egg_info' ) #NEWLINE# for path in ei_cmd . filelist . files : #NEWLINE# #INDENT# ( d , f ) = os . path . split ( assert_relative ( path ) ) #NEWLINE# prev = None #NEWLINE# oldf = f #NEWLINE# while ( d and ( d != prev ) and ( d not in src_dirs ) ) : #NEWLINE# #INDENT# prev = d #NEWLINE# ( d , df ) = os . path . split ( d ) #NEWLINE# f = os . path . join ( df , f ) #NEWLINE# #UNINDENT# if ( d in src_dirs ) : #NEWLINE# #INDENT# if ( path . endswith ( '.py' ) and ( f == oldf ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# mf . setdefault ( src_dirs [ d ] , [ ] ) . append ( ei_cmd )