ó
Ð²Ebc           @@  sÝ  d  Z  d d l m Z d d l Z d d l m Z m Z d d l m Z e rq d d l	 m
 Z
 d d l m Z n  e d d	 ƒ Z e d
 e d d d ƒ f d e d d d ƒ f d e d d d ƒ f d e d d d ƒ f d e d d d ƒ f d e d d  d! ƒ f d" e d# d$ d% ƒ f d& e d' d( d) ƒ f d* e d+ d, d- ƒ f d. e d/ d0 d1 ƒ f d2 e d3 d4 d5 ƒ f d6 e d7 d8 d9 ƒ f d: e d; d< d= ƒ f d> e d? d@ dA ƒ f dB e dC dD dE ƒ f g ƒ Z dF „  Z dG „  Z d S(H   s%   
Package containing all pip commands
i    (   t   absolute_importN(   t   OrderedDictt
   namedtuple(   t   MYPY_CHECK_RUNNING(   t   Any(   t   Commandt   CommandInfos    module_path, class_name, summaryt   installs   pip._internal.commands.installt   InstallCommands   Install packages.t   downloads   pip._internal.commands.downloadt   DownloadCommands   Download packages.t	   uninstalls    pip._internal.commands.uninstallt   UninstallCommands   Uninstall packages.t   freezes   pip._internal.commands.freezet   FreezeCommands1   Output installed packages in requirements format.t   lists   pip._internal.commands.listt   ListCommands   List installed packages.t   shows   pip._internal.commands.showt   ShowCommands*   Show information about installed packages.t   checks   pip._internal.commands.checkt   CheckCommands7   Verify installed packages have compatible dependencies.t   configs$   pip._internal.commands.configurationt   ConfigurationCommands&   Manage local and global configuration.t   searchs   pip._internal.commands.searcht   SearchCommands   Search PyPI for packages.t   caches   pip._internal.commands.cachet   CacheCommands%   Inspect and manage pip's wheel cache.t   wheels   pip._internal.commands.wheelt   WheelCommands$   Build wheels from your requirements.t   hashs   pip._internal.commands.hasht   HashCommands#   Compute hashes of package archives.t
   completions!   pip._internal.commands.completiont   CompletionCommands-   A helper command used for command completion.t   debugs   pip._internal.commands.debugt   DebugCommands&   Show information useful for debugging.t   helps   pip._internal.commands.helpt   HelpCommands   Show help for commands.c         K@  sM   t  |  \ } } } t j | ƒ } t | | ƒ } | d |  d | |  } | S(   sF   
    Create an instance of the Command class with the given name.
    t   namet   summary(   t   commands_dictt	   importlibt   import_modulet   getattr(   R%   t   kwargst   module_patht
   class_nameR&   t   modulet   command_classt   command(    (    s<   /tmp/pip-build-UPPWic/pip/pip/_internal/commands/__init__.pyt   create_commandc   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   difflibR2   t   lowerR'   t   keyst   False(   R%   R2   t   close_commands(    (    s<   /tmp/pip-build-UPPWic/pip/pip/_internal/commands/__init__.pyt   get_similar_commandsp   s    (   t   __doc__t
   __future__R    R(   t   collectionsR   R   t   pip._internal.utils.typingR   t   typingR   t   pip._internal.cli.base_commandR   R   R'   R1   R8   (    (    (    s<   /tmp/pip-build-UPPWic/pip/pip/_internal/commands/__init__.pyt   <module>   sp   	
															