#NEWLINE# def _build_pig_args( args , release_label , region ) : #NEWLINE# #INDENT# args_list = [ ] #NEWLINE# if release_label : #NEWLINE# #INDENT# args_list . append ( constants . PIG_SCRIPT_COMMAND ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args_list . append ( emrutils . build_s3_link ( relative_path = constants . PIG_SCRIPT_PATH , region = region ) ) #NEWLINE# #UNINDENT# args_list . append ( constants . RUN_PIG_SCRIPT ) #NEWLINE# if ( not release_label ) : #NEWLINE# #INDENT# args_list . append ( constants . PIG_VERSIONS ) #NEWLINE# args_list . append ( constants . LATEST ) #NEWLINE# #UNINDENT# args_list . append ( constants . ARGS ) #NEWLINE# args_list += args #NEWLINE# return args_list