parameters: (command, my_env, error_on_failure)
docstring: Runs a step of the compilation. Reports failure as exception.
docstring_summary: Runs a step of the compilation. Reports failure as exception.
docstring_tokens: Runs a step of the compilation . Reports failure as exception .
function: def run_step(command, my_env, error_on_failure):
      """Runs a step of the compilation. Reports failure as exception."""
      # Need to use shell=True on Windows as Popen won't use PATH otherwise.
      p = subprocess.Popen(command, stdout=subprocess.PIPE,
                           stderr=subprocess.PIPE, env=my_env, shell=is_windows())
      (stdout, stderr) = p.communicate()
      if p.returncode != 0:
          raise WrapperStepException(error_on_failure, stdout, stderr)
function_tokens: def run_step ( command , my_env , error_on_failure ) : # Need to use shell=True on Windows as Popen won't use PATH otherwise. p = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE , env = my_env , shell = is_windows ( ) ) ( stdout , stderr ) = p . communicate ( ) if p . returncode != 0 : raise WrapperStepException ( error_on_failure , stdout , stderr )