#NEWLINE# def cleanup_files( self , bundle = False ) : #NEWLINE# #INDENT# 'Clean up files, remove builds.' #NEWLINE# logger . notify ( 'Cleaning up...' ) #NEWLINE# logger . indent += 2 #NEWLINE# for req in self . reqs_to_cleanup : #NEWLINE# #INDENT# req . remove_temporary_source ( ) #NEWLINE# #UNINDENT# remove_dir = [ ] #NEWLINE# if self . _pip_has_created_build_dir ( ) : #NEWLINE# #INDENT# remove_dir . append ( self . build_dir ) #NEWLINE# #UNINDENT# if bundle : #NEWLINE# #INDENT# remove_dir . append ( req . src_dir ) #NEWLINE# #UNINDENT# for dir in remove_dir : #NEWLINE# #INDENT# if os . path . exists ( dir ) : #NEWLINE# #INDENT# logger . info ( ( 'Removing temporary dir %s...' % dir ) ) #NEWLINE# rmtree ( dir ) #NEWLINE# #UNINDENT# #UNINDENT# logger . indent -= 2