403 Forbidden


Disable Functions:
Path : /lib/python2.7/site-packages/pip/commands/
File Upload :
Command :
Current File : //lib/python2.7/site-packages/pip/commands/show.pyc

�
r2Wc@@s�ddlmZddlmZddlZddlZddlmZddlm	Z	m
Z
ddlmZej
e�Zdefd��YZd	�Zd
�ZdS(i(tabsolute_import(t
FeedParserN(tCommand(tSUCCESStERROR(t
pkg_resourcestShowCommandcB@s2eZdZdZdZdZd�Zd�ZRS(s6Show information about one or more installed packages.tshows$
      %prog [options] <package> ...s*Show information about installed packages.cO@s^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((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyRs		cC@sC|stjd�tS|}t|�}t||j�s?tStS(Ns.ERROR: Please provide a package name or names.(tloggertwarningRtsearch_packages_infot
print_resultsR	R(RtoptionsRtquerytresults((s5/usr/lib/python2.7/site-packages/pip/commands/show.pytrun!s
(t__name__t
__module__t__doc__tnametusagetsummaryRR(((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyRs	cc@s�tgtjD]}|jj�|f^q
�}g|D]}|j�^q8}x0g|D]}||krZ||^qZD]}i|jd6|jd6|jd6g|j�D]}|j^q�d6}d}	d}
t	|tj
�r�|jd�r�|jd�}g|D]}|j
d�d^q
}
g|
D]}tjj|j|�^q0}
g|
D]}tjj||j�^q[}	n|jd�r>|jd�}
q>n�|jd	�r|jd	�}
g|
D]}tjj|j|�^q�}
g|
D]}tjj||j�^q�}	n|jd
�r>|jd
�}
n|jd�ri|jd�}||d<nd}|jd
�r�x6|jd
�D]"}|j�r�|j�}Pq�q�Wn||d<t�}|j|
�|j�}x!dD]}|j|�||<q�Wg}xG|
j�D]9}|s*Pn|jd�r|j|td��qqW||d<|	rzt|	�|d<n|VqzWdS(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#tversiontlocationtrequirestRECORDt,itMETADATAsinstalled-files.txtsPKG-INFOsentry_points.txttentry_pointst	INSTALLERt	installersmetadata-versionR%s	home-pagetauthorsauthor-emailtlicensesClassifier: tclassifiersR	N(smetadata-versionssummarys	home-pageR/sauthor-emailslicense(tdictRtworking_settproject_nametlowerR&R'R(tNonet
isinstancetDistInfoDistributionthas_metadatatget_metadata_linestsplittostpathtjointrelpathtget_metadatategg_infotstripRtfeedtclosetgett
splitlinest
startswithtappendtlentsorted(Rtpt	installedR#tquery_namestpkgtdisttdeptpackaget	file_listtmetadatatlinestltpathsR,R.tlinetfeed_parsert
pkg_info_dicttkeyR1((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyR-sf.0


&&+.+.

	


cC@st}x
|D]}t}tjd�tjd|jd��tjd|d�tjd|d�tjd|jd	��tjd
|jd��tjd|jd
��tjd|jd��|dd!k	r�tjd|d�ntjd|jd��tjd|d�tjddj|d��tjd�x"|dD]}tjd|�qTW|r�tjd�d|kr�x8|dD]}tjd|j��q�Wq�tjd�nd|kr
tjd �x+|dD]}tjd|j��q�Wq
q
W|S("sD
    Print the informations from installed distributions found.
    s---sMetadata-Version: %ssmetadata-versionsName: %sR#sVersion: %sR&sSummary: %sR%s
Home-page: %ss	home-pages
Author: %sR/sAuthor-email: %ssauthor-emailR.s
Installer: %ssLicense: %sR0sLocation: %sR'sRequires: %ss, R(sClassifiers:R1s  %ssFiles:R	s!Cannot locate installed-files.txtR,s
Entry-points:N(RtTrueRtinfoRER6R>RB(t
distributionstlist_all_filestresults_printedROt
classifierRW((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyRxs<




!(t
__future__Rtemail.parserRtloggingR<tpip.basecommandRtpip.status_codesRRtpip._vendorRt	getLoggerR RRRR(((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyt<module>s	K

404 Not Found
[ LogOut ]