Your IP : 13.58.53.112


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pyc

�
�Rec@@sddlmZddlZddlZddlmZddlmZddlm	Z	ddl
mZddlm
Z
mZddlmZdd	lmZer�dd
lmZddlmZmZmZneje�Zdefd
��YZd�Zeed�ZdS(i(tabsolute_importN(t
FeedParser(t
pkg_resources(tcanonicalize_name(tCommand(tERRORtSUCCESS(twrite_output(tMYPY_CHECK_RUNNING(tValues(tListtDicttIteratortShowCommandcB@s,eZdZdZeZd�Zd�ZRS(sx
    Show information about one or more installed packages.

    The output is in RFC-compliant mail header format.
    s$
      %prog [options] <package> ...cC@sE|jjdddddddtdd	�|jjd
|j�dS(Ns-fs--filestdesttfilestactiont
store_truetdefaultthelps7Show the full list of installed files for each package.i(tcmd_optst
add_optiontFalsetparsertinsert_option_group(tself((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pytadd_options!s		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_resultsRRR(Rtoptionstargstquerytresults((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pytrun,s
(t__name__t
__module__t__doc__tusagetTruetignore_require_venvRR%(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pyR
s
	cc@s�i}x$tjD]}||t|j�<qWg|D]}t|�^q4}tgt||�D]\}}||kr_|^q_�}|r�tjddj|��nd�}x*g|D]}||kr�||^q�D]�}i|jd6|j	d6|j
d6g|j�D]}	|	j^qd6||j�d6}
d}d	}t
|tj�r|jd
�r�|jd
�}
g|
D]}|jd�d^q{}g|D]}tjj|j
|�^q�}g|D]}tjj||j
�^q�}n|jd
�r�|jd
�}q�n�|jd�r�|jd�}g|D]}tjj|j|�^q<}g|D]}tjj||j
�^qg}n|jd�r�|jd�}n|jd�r�|jd�}||
d<n|jd�r&x:|jd�D]&}|j�r�|j�|
d<Pq�q�Wnt�}|j|�|j�}x!dD]}|j|�|
|<qOWg}x=|j�D]/}|jd�r|j|td��qqW||
d<|r�t|�|
d<n|
Vq�WdS(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.
    sPackage(s) not found: %ss, cS@sWt|�}gtjD]=}|g|j�D]}t|j�^q,kr|j^qS(N(RRtworking_settrequirestnametproject_name(tpackage_nametcanonical_nametpkgtrequired((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pytget_requiring_packagesMs
R.tversiontlocationR-trequired_byttRECORDt,itMETADATAsinstalled-files.txtsPKG-INFOsentry_points.txttentry_pointst	INSTALLERt	installersmetadata-versiontsummarys	home-pagetauthorsauthor-emailtlicensesClassifier: tclassifiersRN(smetadata-versionR?s	home-pageR@sauthor-emailRA( RR,RR/tsortedtzipRRtjoinR5R6R-tNonet
isinstancetDistInfoDistributionthas_metadatatget_metadata_linestsplittostpathtrelpathtget_metadatategg_infotstripRtfeedtclosetgett
splitlinest
startswithtappendtlen(R#t	installedtpR.tquery_namesR2tmissingR4tdisttdeptpackaget	file_listtmetadatatlinestlinetpathsR<tfeed_parsert
pkg_info_dicttkeyRB((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pyR:sl7	
0


#&+.+.
	


c	C@sWt}xJt|�D]<\}}t}|dkr>td�ntd|jdd��td|jdd��td|jd	d��td
|jdd��td|jd
d��td|jdd��td|jdd��td|jdd��tddj|jdg���tddj|jdg���|r�td|jdd��td|jdd��td�x'|jdg�D]}td|�q�Wtd �x0|jd!g�D]}td|j��q�Wn|rtd"�x-|jd#g�D]}td|j��qWd#|krOtd$�qOqqW|S(%sC
    Print the information from installed distributions found.
    is---sName: %sR.R8sVersion: %sR5sSummary: %sR?s
Home-page: %ss	home-pages
Author: %sR@sAuthor-email: %ssauthor-emailsLicense: %sRAsLocation: %sR6sRequires: %ss, R-sRequired-by: %sR7sMetadata-Version: %ssmetadata-versions
Installer: %sR>sClassifiers:RBs  %ss
Entry-points:R<sFiles:Rs!Cannot locate installed-files.txt(Rt	enumerateR*RRTRERQ(	t
distributionsRRtresults_printedtiR]t
classifiertentryRc((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pyR �s@
""


( t
__future__RtloggingRLtemail.parserRtpip._vendorRtpip._vendor.packaging.utilsRtpip._internal.cli.base_commandRtpip._internal.cli.status_codesRRtpip._internal.utils.miscRtpip._internal.utils.typingRtoptparseR	ttypingR
RRt	getLoggerR&RR
RRR (((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/show.pyt<module>s $	Z

?>