#NEWLINE# def _build_egg( egg , archive_filename , to_dir ) : #NEWLINE# #INDENT# with archive_context ( archive_filename ) : #NEWLINE# #INDENT# log . warn ( 'Building a Setuptools egg in %s' , to_dir ) #NEWLINE# _python_cmd ( 'setup.py' , '-q' , 'bdist_egg' , '--dist-dir' , to_dir ) #NEWLINE# #UNINDENT# log . warn ( egg ) #NEWLINE# if ( not os . path . exists ( egg ) ) : #NEWLINE# #INDENT# raise IOError ( 'Could not build the egg.' )