ok
Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/commands/ |
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyc |
� �2{Yc @ sh d d l Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d � Z d � Z d S( i����N( t Command( t logger( t pkg_resourcest ShowCommandc B s2 e Z d Z d Z d Z d Z d � Z d � Z RS( s6 Show information about one or more installed packages.t shows$ %prog [options] <package> ...s* Show information about installed packages.c O s^ t t | � j | | � | j j d d d d d d d t d d �| j j d | j � d S( Ns -fs --filest destt filest actiont store_truet defaultt helps7 Show the full list of installed files for each package.i ( t superR t __init__t cmd_optst add_optiont Falset parsert insert_option_group( t selft argst kw( ( sB /opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyR s c C s= | s t j d � d S| } t | � } t | | j � d S( Ns. ERROR: Please provide a package name or names.( R t warnt search_packages_infot print_resultsR ( R t optionsR t queryt results( ( sB /opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyt run s ( t __name__t __module__t __doc__t namet usaget summaryR R ( ( ( sB /opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyR s c c s� t g t j D] } | j j � | f ^ q � } x� | D]� } | j � } | | k r8 | | } i | j d 6| j d 6| j d 6g | j � D] } | j ^ q� d 6} t j j | j | j � d d � } t j j | � r� | | d <n | Vq8 q8 Wd S( s� Gather details from installed distributions. Print distribution name, version, location, and installed files. Installed files requires a pip generated 'installed-files.txt' in the distributions '.egg-info' directory. R t versiont locationt requiress .egg-infos installed-files.txtR N( t dictR t working_sett project_namet lowerR"