AlkantarClanX12

Your IP : 18.119.107.159


Current Path : /proc/self/root/usr/lib/python2.7/site-packages/pip/commands/
Upload File :
Current File : //proc/self/root/usr/lib/python2.7/site-packages/pip/commands/show.pyc

�
��abc@@s�ddlmZddlmZddlZddlZddlmZddlm	Z	m
Z
ddlmZddl
mZeje�Zdefd	��YZd
�Zeed�ZdS(i(tabsolute_import(t
FeedParserN(tCommand(tSUCCESStERROR(t
pkg_resources(tcanonicalize_nametShowCommandcB@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@sO|stjd�tS|}t|�}t|d|jd|j�sKtStS(Ns.ERROR: Please provide a package name or names.t
list_filestverbose(tloggertwarningRtsearch_packages_infot
print_resultsR
RR(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@smi}x$tjD]}||t|j�<qWg|D]}t|�^q4}xg|D]}||krV||^qVD]�}i|jd6|jd6|jd6g|j�D]}|j^q�d6}d}	d}
t|tj	�r�|j
d�r~|jd�}g|D]}|jd�d^q}
g|
D]}t
jj|j|�^q,}
g|
D]}t
jj||j�^qW}	n|j
d�r:|jd�}
q:n�|j
d	�r|jd	�}
g|
D]}t
jj|j|�^q�}
g|
D]}t
jj||j�^q�}	n|j
d
�r:|jd
�}
n|j
d�re|jd�}||d<n|j
d
�r�x:|jd
�D]&}|j�r�|j�|d<Pq�q�Wnt�}|j|
�|j�}x!dD]}|j|�||<q�Wg}x=|
j�D]/}|jd�r
|j|td��q
q
W||d<|	r`t|	�|d<n|VqvWdS(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-versionR(s	home-pageR2sauthor-emailR3(Rtworking_setRtproject_nameR)R*R+tNonet
isinstancetDistInfoDistributionthas_metadatatget_metadata_linestsplittostpathtjointrelpathtget_metadatategg_infotstripRtfeedtclosetgett
splitlinest
startswithtappendtlentsorted(R t	installedtpR&tquery_namestpkgtdisttdeptpackaget	file_listtmetadatatlinestltpathsR/tlinetfeed_parsert
pkg_info_dicttkeyR4((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyR/s`0


&&+.+.
	


c	C@snt}xat|�D]S\}}t}|dkrAtjd�ntjd|jdd��tjd|jdd��tjd|jd	d��tjd
|jdd��tjd|jd
d��tjd|jdd��tjd|jdd��tjd|jdd��tjddj|jdg���|rtjd|jdd��tjd|jdd��tjd�x*|jdg�D]}tjd|�q�Wtjd�x3|jdg�D]}tjd|j��q�Wn|rtjd �x0|jd!g�D]}tjd|j��q'Wd!|krftjd"�qfqqW|S(#sD
    Print the informations from installed distributions found.
    is---sName: %sR&tsVersion: %sR)sSummary: %sR(s
Home-page: %ss	home-pages
Author: %sR2sAuthor-email: %ssauthor-emailsLicense: %sR3sLocation: %sR*sRequires: %ss, R+sMetadata-Version: %ssmetadata-versions
Installer: %sR1sClassifiers:R4s  %ss
Entry-points:R/sFiles:R
s!Cannot locate installed-files.txt(Rt	enumeratetTrueRtinfoRFR?RC(	t
distributionsRRtresults_printedtiRPt
classifiertentryRX((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyRxs>%	


(t
__future__Rtemail.parserRtloggingR=tpip.basecommandRtpip.status_codesRRtpip._vendorRtpip._vendor.packaging.utilsRt	getLoggerR#RRRRR(((s5/usr/lib/python2.7/site-packages/pip/commands/show.pyt<module>s	I