???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ó
V~gc           @  s  d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m	 Z	 d d g Z
 d Z d Z d e f d	 e f g Z d d
  Z d   Z d   Z d e e e e d d  Z d e e e e d d  Z d d  Z d d  Z d S(   i˙˙˙˙(   t   print_functionN(   t   rewheelt   versiont	   bootstraps   41.2.0s   19.2.3t
   setuptoolst   pipc         C  s[   | d  k	 r | t j t _ n  d d  l } |  d d k rK |  j d  n  | j j |   S(   Ni˙˙˙˙i    t   installt   listt   wheels   --pre(   R   R   R   (   t   Nonet   syst   patht   pip._internalt   appendt	   _internalt   main(   t   argst   additional_pathsR   (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt   _run_pip   s    c           C  s   t  S(   sA   
    Returns a string specifying the bundled version of pip.
    (   t   _PIP_VERSION(    (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR   &   s    c          C  sZ   g  t  j D] }  |  j d  r
 |  ^ q
 } x | D] }  t  j |  =q2 Wt  j t  j d <d  S(   Nt   PIP_t   PIP_CONFIG_FILE(   t   ost   environt
   startswitht   devnull(   t   kt   keys_to_remove(    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt#   _disable_pip_configuration_settings-   s    +i    c         C  s/   t  d |  d | d | d | d | d |  d S(   s­   
    Bootstrap pip into the current Python installation (or the given root
    directory).

    Note that calling this function will alter both sys.path and os.environ.
    t   roott   upgradet   usert
   altinstallt   default_pipt	   verbosityN(   t
   _bootstrap(   R   R   R   R    R!   R"   (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR   9   s    
c         C  sE  | r | r t  d   n  t   | r8 d t j d <n | sN d t j d <n  g  } d } t j g  t D] } | d ^ qg  }	 t |	  rÚ t	 j
   } x |	 D]4 }
 t j |
 |  } | j t j j | |   q WnT xQ t D]I \ } } t j j t j j t  d d j | |   } | j |  qá Wt	 j
   } zđ g  } xF | D]> } t j | |  | j t j j | t j j |    qJWd d d	 | g } |  rˇ| d
 |  g 7} n  | rÍ| d g 7} n  | ră| d g 7} n  | r| d d | g 7} n  t | g  t D] } | d ^ q|  SWd t j | d t Xd S(   sÎ   
    Bootstrap pip into the current Python installation (or the given root
    directory). Returns pip command status code.

    Note that calling this function will alter both sys.path and os.environ.
    s.   Cannot use altinstall and default_pip togetherR    t   ENSUREPIP_OPTIONSR   i    t   _bundleds   {}-{}-py2.py3-none-any.whls
   --no-indexs   --find-linkss   --roots	   --upgrades   --usert   -t   vNt   ignore_errors(   t
   ValueErrorR   R   R   R	   R   t   find_system_recordst	   _PROJECTSt   allt   tempfilet   mkdtempt   rewheel_from_recordR   R   t   joint   dirnamet   __file__t   formatt   shutilt   copyt   basenameR   t   rmtreet   True(   R   R   R   R    R!   R"   t   whlst   rewheel_dirt   pt   dep_recordst   drt   new_whlt   projectR   t   whlt   tmpdirR   R   (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR#   H   sL    	&#	,,c         C  sż   y d d l  } Wn t k
 r$ d SX| j t k r` d } t | j | j t  d t j d St   d d d g } |  r | d d	 |  g 7} n  t	 | g  t
 t  D] } | d
 ^ q§  S(   s~   Helper to support a clean default uninstall process on Windows

    Note that calling this function may alter os.environ.
    i˙˙˙˙NsO   ensurepip will only uninstall a matching version ({!r} installed, {!r} bundled)t   filet	   uninstalls   -ys   --disable-pip-version-checkR&   R'   i    (   R   t   ImportErrort   __version__R   t   printR3   R
   t   stderrR   R   t   reversedR+   (   R"   R   t   msgR   R;   (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt   _uninstall_helper   s    "c         C  s}  d d  l  } | j d d  } | j d d d d d j t    d d	 | j d
 d d d d d d d d d | j d d d d d t d d | j d d d d t d d | j d d d  d d | j d d d d t d d | j d d d d t d d d | j | j d d d d d d d  | j	 |   } t
 d! | j d" | j d# | j d | j d$ | j d | j  S(%   Ni˙˙˙˙t   progs   python -m ensurepips	   --versiont   actionR   s   pip {}t   helps9   Show the version of pip that is bundled with this Python.s   -vs	   --verboset   countt   defaulti    t   destR"   sD   Give more output. Option is additive, and can be used up to 3 times.s   -Us	   --upgradet
   store_trues8   Upgrade pip and dependencies, even if already installed.s   --users   Install using the user scheme.s   --roots=   Install everything relative to this alternate root directory.s   --altinstallso   Make an alternate install, installing only the X.Y versioned scripts (Default: pipX, pipX.Y, easy_install-X.Y).s   --default-pipR!   s   --no-default-pipt   store_falsesL   Make a non default install, installing only the X and X.Y versioned scripts.R   R   R   R    (   t   argparset   ArgumentParsert   add_argumentR3   R   t   FalseR	   R8   t   SUPPRESSt
   parse_argsR#   R   R   R   R"   R    R!   (   t   argvRS   t   parserR   (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt   _mainŻ   sf    		
					(   t
   __future__R    R   t   os.patht   pkgutilR4   R
   R-   t	   ensurepipR   t   __all__t   _SETUPTOOLS_VERSIONR   R+   R	   R   R   R   RV   R8   R   R#   RJ   R[   (    (    (    s7   /opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt   <module>   s.   					I