ó
©9Vc           @@  sI  d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d d l	 m
 Z
 d d l m Z d d l m Z d d	 l m Z d d
 l m Z d d l m Z i	 e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e
 e
 j 6e e j 6Z e e e e
 e e e e g Z e e d „ Z d „  Z d „  Z d S(   s%   
Package containing all pip commands
i    (   t   absolute_import(   t   CompletionCommand(   t   FreezeCommand(   t   HelpCommand(   t   ListCommand(   t   SearchCommand(   t   ShowCommand(   t   InstallCommand(   t   UninstallCommand(   t   WheelCommandc         c@  sb   | r t  t t ƒ } n t j ƒ  } x7 | D]/ \ } } |  rL | j rL q+ n  | | j f Vq+ Wd S(   s5   Yields sorted (command name, command summary) tuples.N(   t   _sort_commandst   commands_dictt   commands_ordert   itemst   hiddent   summary(   t   ignore_hiddent   orderedt   cmditemst   namet   command_class(    (    s2   /tmp/pip-build-5Z5nTX/pip/pip/commands/__init__.pyt   get_summaries*   s    c         C@  sG   d d l  m } |  j ƒ  }  | |  t j ƒ  ƒ } | r? | d St Sd S(   s   Command name auto-correct.i    (   t   get_close_matchesN(   t   difflibR   t   lowerR   t   keyst   False(   R   R   t   close_commands(    (    s2   /tmp/pip-build-5Z5nTX/pip/pip/commands/__init__.pyt   get_similar_commands9   s    c         @  s%   ‡  f d †  } t  |  j ƒ  d | ƒS(   Nc         @  s.   y ˆ  j  |  d ƒ SWn t k
 r) d SXd  S(   Ni   iÿ   (   t   indext
   ValueError(   t   key(   t   order(    s2   /tmp/pip-build-5Z5nTX/pip/pip/commands/__init__.pyt   keyfnH   s    R   (   t   sortedR   (   t   cmddictR    R!   (    (   R    s2   /tmp/pip-build-5Z5nTX/pip/pip/commands/__init__.pyR
   G   s    N(   t   __doc__t
   __future__R    t   pip.commands.completionR   t   pip.commands.freezeR   t   pip.commands.helpR   t   pip.commands.listR   t   pip.commands.searchR   t   pip.commands.showR   t   pip.commands.installR   t   pip.commands.uninstallR   t   pip.commands.wheelR	   R   R   R   t   TrueR   R   R
   (    (    (    s2   /tmp/pip-build-5Z5nTX/pip/pip/commands/__init__.pyt   <module>   s>   







		