ó
ÇvSc           @   s  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 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 6e e j 6e
 e
 j 6e e j 6Z e e e 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   BundleCommand(   t   CompletionCommand(   t   FreezeCommand(   t   HelpCommand(   t   ListCommand(   t   SearchCommand(   t   ShowCommand(   t   InstallCommand(   t   UninstallCommand(   t   UnzipCommand(   t
   ZipCommand(   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   commandst   commands_ordert   itemst   hiddent   summary(   t   ignore_hiddent   orderedt   cmditemst   namet   command_class(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/pip/commands/__init__.pyt   get_summaries3   s    c         C   sB   d d l  m } | |  t j    } | r8 | d } n t } | S(   s   Command name auto-correct.i˙˙˙˙(   t   get_close_matchesi    (   t   difflibR   R   t   keyst   False(   R   R   t   close_commandst   guess(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/pip/commands/__init__.pyt   get_similar_commandsB   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(    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/pip/commands/__init__.pyt   keyfnQ   s    R!   (   t   sortedR   (   t   cmddictR"   R#   (    (   R"   sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/pip/commands/__init__.pyR   P   s    N(    t   __doc__t   pip.commands.bundleR    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.unzipR	   t   pip.commands.zipR
   t   pip.commands.wheelR   R   R   R   t   TrueR   R   R   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/pip/commands/__init__.pyt   <module>   sN   










		