#NEWLINE# def _do_sphinx( self , dest_path ) : #NEWLINE# #INDENT# print ( 'Building Documentation' ) #NEWLINE# cmd_args = [ 'rm' , '-rf' , 'docs/build/*' ] #NEWLINE# cmd_args = [ 'sphinx-build' , 'doc/source' , dest_path ] #NEWLINE# ( out , err , res ) = shell . exec_cmd ( cmd_args ) #NEWLINE# if ( out > 0 ) : #NEWLINE# #INDENT# self . _do_error ( ( '\n\nFailed to build sphinx documentation\n\n' + ( '$ %s\n%s' % ( ' ' . join ( cmd_args ) , str ( out ) ) ) ) )