<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
σ
οRec        
   @@  sh  d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l m Z d  d l m Z m	 Z	 d  d l
 m Z d  d l m Z m Z d  d l m Z d  d l m Z m Z d  d	 l m Z e rd  d
 l m Z m Z m Z m Z m Z m Z m Z m Z e e e e f Z  n  d Z! d   Z" d   Z# d   Z$ d   Z% e& d d d d d d d e( d 	 Z) d   Z* d S(   i    (   t   absolute_importN(   t   shlex_quote(   t   SpinnerInterfacet   open_spinner(   t   InstallationError(   t   console_to_strt   str_to_display(   t   subprocess_logger(   t
   HiddenTextt   path_to_display(   t   MYPY_CHECK_RUNNING(   t   Anyt   Callablet   Iterablet   Listt   Mappingt   Optionalt   Textt   Unions(   ----------------------------------------c          G@  sG   g  } x: |  D]2 } t  | t  r2 | j |  q | j |  q W| S(   s&   
    Create a CommandArgs object.
    (   t
   isinstancet   listt   extendt   append(   t   argst   command_argst   arg(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   make_command   s    c         C@  s   d j  d   |  D  S(   s/   
    Format command arguments for display.
    t    c         s@  s<   |  ]2 } t  | t  r* t t |   n	 t |  Vq d  S(   N(   R   R   R   t   str(   t   .0R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pys	   <genexpr>8   s   (   t   join(   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   format_command_args-   s    
c         C@  s/   g  |  D]$ } t  | t  r% | j n | ^ q S(   s=   
    Return the arguments in their raw, unredacted form.
    (   R   R   t   secret(   R   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   reveal_command_args=   s    c   	      C@  ss   t  |   } t | d d } t |  } d j |  } d j d | d | d | d t |  d	 | d
 t  } | S(   s§   
    Create and return the error message to use to log a subprocess error
    with command output.

    :param lines: A list of lines, each ending with a newline.
    t   descs   command bytest    u   Command errored out with exit status {exit_status}:
 command: {command_display}
     cwd: {cwd_display}
Complete output ({line_count} lines):
{output}{divider}t   exit_statust   command_displayt   cwd_displayt
   line_countt   outputt   divider(   R   R   R	   R   t   formatt   lent   LOG_DIVIDER(	   t   cmd_argst   cwdt   linesR$   t   commandR%   R&   R(   t   msg(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   make_subprocess_output_errorG   s    		t   raisec
         C@  sP  | d	 k r g  } n  | d	 k r* g  } n  | rE t j }
 t j } n t j }
 t j } t j   | k } | oy | d	 k	 } | d	 k r t |   } n  |
 d |  t	 j
 j   } | rΙ | j |  n  x | D] } | j | d	  qΠ Wyk t j t |   d t j d t j d t j d | d | } | j s8t  | j sGt  | j j   Wn2 t k
 r} |	 rt j d | |  n    n Xg  } xo t rt | j j    } | sΈPn  | j   } | j | d  |
 |  | r| sρt  | j   qqWz | j   Wd	 | j r,| j j   n  X| j  oB| j  | k } | r}| sWt  | rm| j! d
  q}| j! d  n  | rC| d k rτ| rΠ|	 rΠt" d |  d | d | d | j   } t j# |  n  d j$ | j  |  } t% |   qC| d k rt j& d | | j  |  qC| d k r+qCt' d j$ |    n  d j( |  S(   sν  
    Args:
      show_stdout: if true, use INFO to log the subprocess's stderr and
        stdout streams.  Otherwise, use DEBUG.  Defaults to False.
      extra_ok_returncodes: an iterable of integer return codes that are
        acceptable, in addition to 0. Defaults to None, which means [].
      unset_environ: an iterable of environment variable names to unset
        prior to calling subprocess.Popen().
      log_failed_cmd: if false, failed commands are not logged, only raised.
    s   Running command %st   stderrt   stdint   stdoutR.   t   envs#   Error %s while executing command %ss   
Nt   errort   doneR3   R-   R/   R$   sS   Command errored out with exit status {}: {} Check the logs for full command output.t   warns$   Command "%s" had error code %s in %st   ignores!   Invalid value: on_returncode={!r}R#   ()   t   NoneR   t   infot   loggingt   INFOt   debugt   DEBUGt   getEffectiveLevelR   t   ost   environt   copyt   updatet   popt
   subprocesst   PopenR!   t   STDOUTt   PIPER5   t   AssertionErrorR6   t   closet	   Exceptiont   criticalt   TrueR   t   readlinet   rstripR   t   spint   waitt
   returncodet   finishR2   R8   R*   R   t   warningt
   ValueErrorR   (   t   cmdt   show_stdoutR.   t   on_returncodet   extra_ok_returncodest   command_desct   extra_environt   unset_environt   spinnert   log_failed_cmdt   log_subprocesst
   used_levelt   showing_subprocesst   use_spinnerR7   t   namet   proct   exct
   all_outputt   linet   proc_had_errorR1   t   exc_msg(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   call_subprocessq   s    						
	
	c         @  s   d d   f d  } | S(   sά   Provide a subprocess_runner that shows a spinner message.

    Intended for use with for pep517's Pep517HookCaller. Thus, the runner has
    an API that matches what's expected by Pep517HookCaller.subprocess_runner.
    c         @  s5   t     # } t |  d | d | d | Wd  QXd  S(   NR.   R^   R`   (   R   Rm   (   RY   R.   R^   R`   (   t   message(    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   runner
  s    N(   R<   (   Rn   Ro   (    (   Rn   s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   runner_with_spinner_message  s    
(+   t
   __future__R    R>   RC   RH   t   pip._vendor.six.movesR   t   pip._internal.cli.spinnersR   R   t   pip._internal.exceptionsR   t   pip._internal.utils.compatR   R   t   pip._internal.utils.loggingR   t   pip._internal.utils.miscR   R	   t   pip._internal.utils.typingR
   t   typingR   R   R   R   R   R   R   R   R   t   CommandArgsR,   R   R   R!   R2   t   FalseR<   RP   Rm   Rp   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/subprocess.pyt   <module>   s8   :			
	,