ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyo

�
Bu�_c@@s�ddlmZddlZddlZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	lmZdd
lmZddlmZmZmZmZddlmZdd
lmZddlmZerUddlm Z ddl!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'ddl(m)Z)nej*e+�Z,de	fd��YZ-d�Z.d�Z/dS(i(tabsolute_importN(tsix(t
cmdoptions(tIndexGroupCommand(tSUCCESS(tCommandError(t
LinkCollector(t
PackageFinder(tSelectionPreferences(tdist_is_editabletget_installed_distributionsttabulatetwrite_output(t
get_installer(tmap_multithread(tMYPY_CHECK_RUNNING(tValues(tListtSettTupletIterator(t
PipSession(tDistributiontListCommandcB@skeZdZeZdZd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�ZRS(st
    List installed packages, including editables.

    Packages are listed in a case-insensitive sorted order.
    s
      %prog [options]cC@s�|jjdddddtdd�|jjdd	dddtdd
�|jjdddddtdd
�|jjdddddtdd�|jjddddddtdd�|jjtj��|jjddddtdd�|jjddddddddd)dd�|jjddddd dd!�|jjd"dd#dd$dd%�|jjd&dddd$dd'dt�tjtj|j�}|jj	d(|�|jj	d(|j�dS(*Ns-os
--outdatedtactiont
store_truetdefaultthelpsList outdated packagess-us
--uptodatesList uptodate packagess-es
--editablesList editable projects.s-ls--localsSIf in a virtualenv that has global access, do not list globally-installed packages.s--usertdesttusers,Only output packages installed in user-site.s--presYInclude pre-release and development versions. By default, pip only finds stable versions.s--formattstoretlist_formattcolumnstchoicestfreezetjsonsBSelect the output format among: columns (default), freeze, or jsons--not-requiredtnot_requireds>List packages that are not dependencies of installed packages.s--exclude-editabletstore_falsetinclude_editables%Exclude editable package from output.s--include-editables%Include editable package from output.i(R R"sjson(
tcmd_optst
add_optiontFalseRt	list_pathtTruetmake_option_grouptindex_grouptparsertinsert_option_group(tselft
index_opts((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pytadd_options.sv														cC@sCtj|d|�}tdtd|j�}tjd|d|�S(sK
        Create a package finder appropriate to this list command.
        toptionstallow_yankedtallow_all_prereleasestlink_collectortselection_prefs(RtcreateRR)tpreR(R0R3tsessionR6R7((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyt_build_package_finder{s	cC@s�|jr!|jr!td��ntj|�td|jd|jd|jd|j	d|j
�}|jr�|j||�}n|jr�|j
||�}n|jr�|j||�}n|j||�tS(Ns5Options --outdated and --uptodate cannot be combined.t
local_onlyt	user_onlyteditables_onlytinclude_editablestpaths(toutdatedtuptodateRRtcheck_list_path_optionR
tlocalRteditableR&tpathR$tget_not_requiredtget_outdatedtget_uptodatetoutput_package_listingR(R0R3targstpackages((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pytrun�s$
							cC@s5g|j||�D]}|j|jkr|^qS(N(titer_packages_latest_infostlatest_versiontparsed_version(R0RLR3tdist((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRH�scC@s5g|j||�D]}|j|jkr|^qS(N(RNRORP(R0RLR3RQ((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRI�sc@sQt��x+|D]#}�jd�|j�D��qWt�fd�|D��S(Ncs@s|]}|jVqdS(N(tkey(t.0trequirement((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pys	<genexpr>�sc@s%h|]}|j�kr|�qS((RR(RStpkg(tdep_keys(sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pys	<setcomp>�s	(tsettupdatetrequirestlist(R0RLR3RQ((RVsL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRG�s	
!c#@sn|j���Y}|j�|����fd�}x+t||�D]}|dk	rF|VqFqFWWdQXdS(Nc@s�d}�j|j�}�jsIg|D]}|jjs(|^q(}n�jd|j�}|j|�}|dkr}dS|j}|j	j
r�d}nd}||_||_|S(Ntunknowntproject_nametwheeltsdist(
tfind_all_candidatesRRR9tversiont
is_prereleasetmake_candidate_evaluatorR\tsort_best_candidatetNonetlinktis_wheelROtlatest_filetype(RQttyptall_candidatest	candidatet	evaluatortbest_candidatetremote_version(tfinderR3(sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pytlatest_info�s"	
					(t_build_sessionR;RRd(R0RLR3R:RoRQ((RnR3sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRN�scC@s�t|dd��}|jdkrR|rRt||�\}}|j||�n�|jdkr�xz|D]J}|jdkr�td|j|j|j�qhtd|j|j�qhWn%|jdkr�tt	||��ndS(	NRRcS@s
|jj�S(N(R\tlower(RQ((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyt<lambda>�sR R"is%s==%s (%s)s%s==%sR#(
tsortedRtformat_for_columnstoutput_package_listing_columnstverboseRR\R`tlocationtformat_for_json(R0RLR3tdatatheaderRQ((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRJ�s
cC@s�t|�dkr%|jd|�nt|�\}}t|�dkrq|jddjtd�|���nx|D]}t|�qxWdS(Niit cS@sd|S(Nt-((tx((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRrs(tlentinsertRtjointmapR(R0RyRztpkg_stringstsizestval((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRu�s(
(t__name__t
__module__t__doc__R+tignore_require_venvtusageR2R;RMRHRIRGRNRJRu(((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyR#s	M						#	cC@s@|j}|r$ddddg}nddg}g}|jdks[td�|D��rk|jd�n|jdkr�|jd�nx�|D]�}|j|jg}|r�|j|j�|j|j�n|jdks�t|�r|j|j	�n|jdkr%|jt
|��n|j|�q�W||fS(	s_
    Convert the package data into something usable
    by output_package_listing_columns.
    tPackagetVersiontLatesttTypeics@s|]}t|�VqdS(N(R	(RSR}((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pys	<genexpr>stLocationt	Installer(RARvtanytappendR\R`RORgR	RwR
(tpkgsR3trunning_outdatedRzRytprojtrow((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRts(	%
cC@s�g}x�|D]�}i|jd6tj|j�d6}|jdkre|j|d<t|�|d<n|jr�tj|j�|d<|j	|d<n|j
|�q
Wtj|�S(NtnameR`iRwt	installerRORg(
R\Rt	text_typeR`RvRwR
RARORgR�R#tdumps(RLR3RyRQtinfo((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyRx1s


	(0t
__future__RR#tloggingtpip._vendorRtpip._internal.cliRtpip._internal.cli.req_commandRtpip._internal.cli.status_codesRtpip._internal.exceptionsRtpip._internal.index.collectorRt"pip._internal.index.package_finderRt$pip._internal.models.selection_prefsRtpip._internal.utils.miscR	R
RRtpip._internal.utils.packagingR
tpip._internal.utils.parallelRtpip._internal.utils.typingRtoptparseRttypingRRRRtpip._internal.network.sessionRtpip._vendor.pkg_resourcesRt	getLoggerR�tloggerRRtRx(((sL/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/list.pyt<module>s.""�	&

Zerion Mini Shell 1.0