
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
ó
•�abc           @@  si  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 Z d  d l	 m
 Z
 e j d d e
 ƒy d  d l Z Wn e k
 rª nc Xe j d k re e d d  ƒ d k  ry d  d	 l m Z Wn e e f k
 rÿ qXe j ƒ  n  d  d
 l m Z m Z m Z d  d l m Z m Z d  d l m Z m Z d  d l m Z m Z m  Z  m! Z! d  d l" m# Z# m$ Z$ d  d l% m& Z& m' Z' d  d l% m( Z( d  d l	 m) Z) d  d l* Z+ e+ j, Z, d Z- e j. e/ ƒ Z0 e j d d e) ƒd „  Z1 d „  Z2 d „  Z3 d „  Z4 d d „ Z6 d e7 f d „  ƒ  YZ8 e/ d k ree j9 e6 ƒ  ƒ n  d S(   i    (   t   absolute_importN(   t   DependencyWarningt   ignoret   categoryt   darwint   OPENSSL_VERSION_NUMBERi (   t   securetransport(   t   InstallationErrort   CommandErrort   PipError(   t   get_installed_distributionst   get_prog(   t   deprecationt   dist_is_editable(   t   gitt	   mercurialt
   subversiont   bazaar(   t   ConfigOptionParsert   UpdatingDefaultsHelpFormatter(   t   get_summariest   get_similar_commands(   t   commands_dict(   t   InsecureRequestWarnings   9.0.3c          C@  s©  d t  j k r d St  j d j ƒ  d }  t t  j d ƒ } y |  | d } Wn t k
 rh d } n Xg  t ƒ  D] \ } } | ^ qs } g  } y- g  |  D] } | | k r› | ^ q› d } Wn t k
 r× d } n Xt ƒ  }	 | rÓ| d k rt j	 d ƒ n  | d	 k r²| j
 d
 ƒ r²g  }
 | j ƒ  } xO t d t ƒ D]> } | j j
 | ƒ rA| j |  d k rA|
 j | j ƒ qAqAW|
 r²x |
 D] } | GHq�Wt j	 d ƒ q²n  t | ƒ  } | g  | j j D]- } | j t j k rÏ| j ƒ  | j f ^ qÏ7} g  |  d | d !D] } | j d ƒ d ^ q} g  | D]$ \ } } | | k r;| | f ^ q;} g  | D]' \ } } | j
 | ƒ rl| | f ^ ql} xü | D], } | d } | d rÇ| d 7} n  | GHq WnÅ | j
 d
 ƒ sñ| j
 d ƒ rhg  |	 j D] } | j ^ qû} | j |	 j ƒ d „  | Dƒ } | g  | D]$ } | j t j k r:| j ƒ  ^ q:7} n  d j g  | D] } | j
 | ƒ ru| ^ quƒ GHt j	 d ƒ d S(   sÃ   Command and option completion for the main option parser (and options)
    and its subcommands (and options).

    Enable by sourcing one of the completion shell scripts (bash, zsh or fish).
    t   PIP_AUTO_COMPLETENt
   COMP_WORDSi   t
   COMP_CWORDt    i    t   helpt	   uninstallt   -t
   local_onlyt   =s   --c         s@  s"   |  ] } | D] } | Vq q d  S(   N(    (   t   .0t   itt   o(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pys	   <genexpr>…   s    t    (   t   ost   environt   splitt   intt
   IndexErrorR   t   Nonet   create_main_parsert   syst   exitt
   startswitht   lowerR
   t   Truet   keyt   appendR   t   parsert   option_list_allR   t   optparset   SUPPRESS_HELPt   get_opt_stringt   nargst   option_groupst   option_listt   join(   t   cwordst   cwordt   currentt   cmdt   summaryt   subcommandst   optionst   wt   subcommand_nameR3   t	   installedt   lct   distt
   subcommandt   optt   xt	   prev_optst   vt   kt   optiont	   opt_labelt   it   opts(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt   autocompleteE   s`    
"-
	%	.114

(0c          C@  s  i d d 6t  d 6t ƒ  d 6d d 6t ƒ  d 6}  t |  �  } | j ƒ  t j j t j j t j j t	 ƒ ƒ ƒ } d t
 | t j d	  f | _ t j t j | ƒ } | j | ƒ t | _ t ƒ  } d
 g g  | D] \ } } d | | f ^ qÍ } d j | ƒ | _ | S(   Ns   
%prog <command> [options]t   usaget   add_help_optiont	   formattert   globalt   namet   progs   pip %s from %s (python %s)i   R   s   %-27s %ss   
(   t   FalseR   R   R   t   disable_interspersed_argsR%   t   patht   dirnamet   abspatht   __file__t   __version__R,   t   versiont
   cmdoptionst   make_option_groupt   general_groupt   add_option_groupR0   t   mainR   R;   t   description(   t	   parser_kwR3   t   pip_pkg_dirt   gen_optst   command_summariesRP   t   jRf   (    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyR+   Ž   s$    

*		0c         C@  s  t  ƒ  } | j |  ƒ \ } } | j rZ t j j | j ƒ t j j t j ƒ t j ƒ  n  | sƒ | d d k rš t	 | ƒ d k rš | j
 ƒ  t j ƒ  n  | d } | t k rû t | ƒ } d | g } | rã | j d | ƒ n  t d j | ƒ ƒ ‚ n  |  } | j | ƒ | | f S(   Ni    R   i   s   unknown command "%s"s   maybe you meant "%s"s    - (   R+   t
   parse_argsR`   R,   t   stdoutt   writeR%   t   linesepR-   t   lent
   print_helpR   R   R2   R   R;   t   remove(   t   argsR3   t   general_optionst	   args_elset   cmd_namet   guesst   msgt   cmd_args(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt	   parseopts¬   s&    			)

c         C@  s   t  } d |  k r t } n  | S(   Ns
   --isolated(   RY   R0   (   Rs   t   isolated(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt   check_isolatedÖ   s    	c         C@  só   |  d  k r t j d }  n  t j ƒ  t ƒ  y t |  ƒ \ } } WnG t k
 rŒ } t j j	 d | ƒ t j j	 t
 j ƒ t j d ƒ n Xy t j t j d ƒ Wn& t j k
 rÌ } t j d | ƒ n Xt | d t | ƒ ƒ } | j | ƒ S(   Ni   s	   ERROR: %sR   s%   Ignoring error %s when setting localeR{   (   R*   R,   t   argvR   t   install_warning_loggerRR   Rz   R	   t   stderrRn   R%   Ro   R-   t   localet	   setlocalet   LC_ALLt   Errort   loggert   debugR   R|   Re   (   Rs   Rv   Ry   t   exct   et   command(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyRe   ß   s     
t   FrozenRequirementc           B@  sY   e  Z d d  „ Z e j d ƒ Z e j d ƒ Z e d „  ƒ Z e	 d „  ƒ Z
 d „  Z RS(   c         C@  s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   RW   t   reqt   editablet   comments(   t   selfRW   RŠ   R‹   RŒ   (    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt   __init__ÿ   s    			s   -r(\d+)$s   -(20\d\d\d\d\d\d)$c         C@  s=  t  j j t  j j | j ƒ ƒ } g  } d d l m } m } t | ƒ rÞ | j	 | ƒ rÞ t
 } y | | | ƒ } Wn) t k
 rœ }	 t j d |	 ƒ d  } n X| d  k r't j d | ƒ | j d ƒ | j ƒ  } t } q'nIt } | j ƒ  } | j }
 t |
 ƒ d k r|
 d d d k s5t d	 |
 | f ƒ ‚ |
 d d } |  j j | ƒ } |  j j | ƒ } | ss| r'| j d
 ƒ } | r | ƒ  j | | ƒ } n  | sÆt j d | ƒ | j d ƒ q'| j d | ƒ | rï| j d ƒ } n d | j d ƒ } t
 } d | | |  j | ƒ f } n  |  | j | | | ƒ S(   Ni    (   t   vcst   get_src_requirementsY   Error when trying to get requirement for VCS system %s, falling back to uneditable formats-   Could not determine repository location of %ss-   ## !! Could not determine repository locationi   s   ==s   ===s5   Expected 1 spec with == or ===; specs = %r; dist = %rt   svns(   Warning: cannot find svn location for %ssF   ## FIXME: could not find svn URL in dependency_links for this package:s3   # Installing as editable to satisfy requirement %s:s   {%s}s   %s@%s#egg=%s(   s   ==s   ===(   R%   R[   t   normcaseR]   t   locationt   pip.vcsR�   R�   R   t   get_backend_nameR0   R   R„   t   warningR*   R2   t   as_requirementRY   t   specsRp   t   AssertionErrort   _rev_ret   searcht   _date_ret   get_backendt   get_locationt   groupt   egg_namet   project_name(   t   clsRG   t   dependency_linksR“   RŒ   R�   R�   R‹   RŠ   R†   R˜   R`   t	   ver_matcht
   date_matcht   svn_backendt   svn_locationt   rev(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt	   from_dist  sf    !

	)	

c         C@  s;   |  j  ƒ  } t j d | ƒ } | r7 | | j ƒ   } n  | S(   Ns
   -py\d\.\d$(   R    t   reR›   t   start(   RG   RW   t   match(    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyR    I  s
    c         C@  sF   |  j  } |  j r d | } n  d j t |  j ƒ t | ƒ g ƒ d S(   Ns   -e %ss   
(   RŠ   R‹   R;   t   listRŒ   t   str(   R�   RŠ   (    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt   __str__Q  s    		(    (   t   __name__t
   __module__RŽ   Rª   t   compileRš   Rœ   t   classmethodR©   t   staticmethodR    R¯   (    (    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyR‰   ý   s   At   __main__(:   t
   __future__R    R€   t   loggingR%   R5   t   warningsR,   Rª   t   pip._vendor.urllib3.exceptionsR   t   filterwarningst   sslt   ImportErrort   platformt   getattrt   pip._vendor.urllib3.contribR   t   OSErrort   inject_into_urllib3t   pip.exceptionsR   R   R	   t	   pip.utilsR
   R   R   R   R”   R   R   R   R   t   pip.baseparserR   R   t   pip.commandsR   R   R   R   t   pip.cmdoptionst   pipRa   R_   t	   getLoggerR°   R„   RR   R+   Rz   R|   R*   Re   t   objectR‰   R-   (    (    (    s0   /usr/lib/python2.7/site-packages/pip/__init__.pyt   <module>   sR   
"		I		*		[