#NEWLINE# def archive_dist( self , build_dir , dist_dir ) : #NEWLINE# #INDENT# archive_basename = self . distribution . get_fullname ( ) #NEWLINE# if self . online_install : #NEWLINE# #INDENT# archive_basename += '-online' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# archive_basename += '-offline' #NEWLINE# #UNINDENT# archive_file = os . path . join ( dist_dir , archive_basename ) #NEWLINE# self . mkpath ( os . path . dirname ( archive_file ) ) #NEWLINE# self . make_archive ( archive_file , 'bztar' , root_dir = os . path . dirname ( build_dir ) , base_dir = os . path . basename ( build_dir ) ) #NEWLINE# logger . info ( 'created %s.tar.bz2' , archive_file )