#NEWLINE# def run( self ) : #NEWLINE# #INDENT# if os . path . exists ( self . build_temp ) : #NEWLINE# #INDENT# remove_tree ( self . build_temp , dry_run = self . dry_run ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . debug ( "'%s' does not exist -- can't clean it" , directory . build_temp ) #NEWLINE# #UNINDENT# if self . all : #NEWLINE# #INDENT# for directory in ( self . build_lib , self . bdist_base , self . build_scripts ) : #NEWLINE# #INDENT# if os . path . exists ( directory ) : #NEWLINE# #INDENT# remove_tree ( directory , dry_run = self . dry_run ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . warn ( "'%s' does not exist -- can't clean it" , directory ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( not self . dry_run ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# os . rmdir ( self . build_base ) #NEWLINE# log . info ( "removing '%s'" , self . build_base ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass