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/list.pyo

�
�2{Yc@s�ddlmZddlmZmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZmZdefd	��YZd
S(i����(tCommand(tDistributionNotFoundtBestVersionAlreadyInstalled(t
PackageFinder(tlogger(tInstallRequirement(tget_installed_distributionstdist_is_editable(tmake_option_grouptindex_grouptListCommandcBszeZdZdZdZdZdgZd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(s-List installed packages, including editables.tlists
      %prog [options]sList installed packages.tpythonc	Ostt|�j||�|j}|jdddddtdd�|jdd	dddtdd
�|jdddddtdd
�|jdddddtdd�|jddddtdd�tt|j�}|jj	d|�|jj	d|�dS(Ns-os
--outdatedtactiont
store_truetdefaultthelps,List outdated packages (excluding editables)s-us
--uptodates,List uptodate packages (excluding editables)s-es
--editablesList editable projects.s-ls--localsSIf in a virtualenv that has global access, do not list globally-installed packages.s--presYInclude pre-release and development versions. By default, pip only finds stable versions.i(
tsuperR
t__init__tcmd_optst
add_optiontFalseRR	tparsertinsert_option_group(tselftargstkwRt
index_opts((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyRs<					cCsItd|jd|d|jd|jd|jd|jd|jd|�S(	sK
        Create a package finder appropriate to this list command.
        t
find_linkst
index_urlstallow_externaltallow_unverifiedtallow_all_externaltallow_all_prereleasestprocess_dependency_linkstsession(RRRRR tpreR"(RtoptionsRR#((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyt_build_package_finder9s					cCs\|jr|j|�n?|jr2|j|�n&|jrK|j|�n
|j|�dS(N(toutdatedtrun_outdatedtuptodatetrun_uptodateteditablet
run_editablestrun_listing(RR%R((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pytrunHs			cCsYxR|j|�D]A\}}}||jkrtjd|j|j|f�qqWdS(Ns%s (Current: %s Latest: %s)(tfind_packages_latests_versionstparsed_versionRtnotifytproject_nametversion(RR%tdisttremote_version_rawtremote_version_parsed((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyR(Rsc
cs�|jg|j}|jr?tjddj|��g}n|jr[tjdd�n|jr�tjdd�||j7}ng}xKt	d|j
d|j�D].}|jd�r�|j
|jd��q�q�W|j|�}|j|||�}|j|�t	d|j
d	td|j�}x�|D]�}tj|jd�}y(|j|t�}	|	dkrsw1nWn-tk
r�q1nGtk
r�|j}
n.X|j|	|j�d
}
|
d}|
d
}|||fVq1WdS(NsIgnoring indexes: %st,s1.7s�--use-mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.s�--mirrors has been deprecated and will be removed in  the future. Explicit uses of --index-url and/or --extra-index-url is suggested.t
local_onlytskipsdependency_links.txttinclude_editablesii(t	index_urltextra_index_urlstno_indexRR1tjointuse_mirrorst
deprecatedtmirrorsRtlocalR9thas_metadatatextendtget_metadata_linest_build_sessionR&tadd_dependency_linksRRt	from_linetkeytNonetfind_requirementtTrueRRtinstalled_versiont_link_package_versionstname(
RR%Rtdependency_linksR4R#tfindertinstalled_packagestreqtlinktremote_versionR5R6((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyR/XsD				
		"
!






cCs,td|jd|j�}|j|�dS(NR8R9(RRBR9toutput_package_listing(RR%RR((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyR-�scCs)td|jdt�}|j|�dS(NR8teditables_only(RRBRLRV(RR%RR((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyR,�scCsxt|dd��}x\|D]T}t|�rMd|j|j|jf}nd|j|jf}tj|�qWdS(NRIcSs
|jj�S(N(R2tlower(R4((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyt<lambda>�ss%s (%s, %s)s%s (%s)(tsortedRR2R3tlocationRR1(RRRR4tline((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyRV�s
cCsYg}x?|j|�D].\}}}|j|kr|j|�qqW|j|�dS(N(R/R0tappendRV(RR%R)R4R5R6((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyR*�s
(t__name__t
__module__t__doc__ROtusagetsummaryR9RR&R.R(R/R-R,RVR*(((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyR

s		%		
		4				N(tpip.basecommandRtpip.exceptionsRRt	pip.indexRtpip.logRtpip.reqRtpip.utilRRtpip.cmdoptionsRR	R
(((sB/opt/alt/python33/lib/python3.3/site-packages/pip/commands/list.pyt<module>s

Zerion Mini Shell 1.0