ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/commands/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyo

�
�2{Yc@shddlZddlmZddlmZddlmZdefd��YZd�Zd�Z	dS(	i����N(tCommand(tlogger(t
pkg_resourcestShowCommandcBs2eZdZdZdZdZd�Zd�ZRS(s6Show information about one or more installed packages.tshows$
      %prog [options] <package> ...s*Show information about installed packages.cOs^tt|�j||�|jjdddddddtdd	�|jjd
|j�dS(Ns-fs--filestdesttfilestactiont
store_truetdefaultthelps7Show the full list of installed files for each package.i(tsuperRt__init__tcmd_optst
add_optiontFalsetparsertinsert_option_group(tselftargstkw((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyRs		cCs=|stjd�dS|}t|�}t||j�dS(Ns.ERROR: Please provide a package name or names.(Rtwarntsearch_packages_infot
print_resultsR(RtoptionsRtquerytresults((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pytruns
(t__name__t
__module__t__doc__tnametusagetsummaryRR(((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyRs	c	cs�tgtjD]}|jj�|f^q
�}x�|D]�}|j�}||kr8||}i|jd6|jd6|jd6g|j�D]}|j^q�d6}tj	j
|j|j�dd�}tj	j|�r�||d<n|Vq8q8WdS(	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.
    Rtversiontlocationtrequiress	.egg-infosinstalled-files.txtRN(
tdictRtworking_settproject_nametlowerR"R#R$tostpathtjointegg_nametisfile(	Rtptinstalled_packagesRtnormalized_nametdisttdeptpackagetfilelist((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyR$s$.




&	
	
cCs�x�|D]�}tjd�tjd|d�tjd|d�tjd|d�tjdd	j|d
��|rtjd�d|kr�x?t|d�D]}tjd
|j��q�Wq�tjd�qqWdS(sD
    Print the informations from installed distributions found.
    s---sName: %sRsVersion: %sR"sLocation: %sR#sRequires: %ss, R$sFiles:Rs  %ss!Cannot locate installed-files.txtN(RtnotifyR+topentstrip(t
distributionstlist_all_filesR1tline((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyR@s


(
R)tpip.basecommandRtpip.logRtpip._vendorRRRR(((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/show.pyt<module>s	

Zerion Mini Shell 1.0