/usr/lib/python2.7/site-packages/pip/commands
NameSizeModeActions
check.py13820644editdlrm
check.pyc15990644editdlrm
check.pyo15990644editdlrm
completion.py24530644editdlrm
completion.pyc28940644editdlrm
completion.pyo28940644editdlrm
download.py78100644editdlrm
download.pyc61730644editdlrm
download.pyo61730644editdlrm
freeze.py28350644editdlrm
freeze.pyc31930644editdlrm
freeze.pyo31930644editdlrm
hash.py15970644editdlrm
hash.pyc24030644editdlrm
hash.pyo24030644editdlrm
help.py9820644editdlrm
help.pyc13520644editdlrm
help.pyo13520644editdlrm
install.py182890644editdlrm
install.pyc120980644editdlrm
install.pyo120980644editdlrm
list.py113690644editdlrm
list.pyc111390644editdlrm
list.pyo110940644editdlrm
search.py45020644editdlrm
search.pyc49550644editdlrm
search.pyo49550644editdlrm
show.py58910644editdlrm
show.pyc57470644editdlrm
show.pyo57470644editdlrm
uninstall.py28840644editdlrm
uninstall.pyc30390644editdlrm
uninstall.pyo30390644editdlrm
wheel.py77290644editdlrm
wheel.pyc63660644editdlrm
wheel.pyo63660644editdlrm
__init__.py22440644editdlrm
__init__.pyc26360644editdlrm
__init__.pyo26360644editdlrm
Edit: /usr/lib/python2.7/site-packages/pip/commands/list.pyc (11139B)
σ •abc@@s,ddlmZddlZddlZddlZyddlmZWn!ek rkddlmZnXddl m Z ddl m Z ddl mZddlmZdd lmZmZdd lmZdd lmZmZejeƒZd e fd „ƒYZd„Zd„Zd„ZdS(i(tabsolute_importN(t zip_longest(t izip_longest(tsix(tCommand(t CommandError(t PackageFinder(tget_installed_distributionstdist_is_editable(tRemovedInPip10Warning(tmake_option_groupt index_groupt ListCommandcB@sƒeZdZdZdZdZd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„ZRS(st List installed packages, including editables. Packages are listed in a case-insensitive sorted order. tlists %prog [options]sList installed packages.c O@sqtt|ƒj||Ž|j}|jdddddtddƒ|jdd dddtdd ƒ|jd d dddtdd ƒ|jdddddtddƒ|jjddddddtddƒ|jddddtddƒ|jddddddd$ddƒ|jd dddd!dd"ƒtt|jƒ}|jj d#|ƒ|jj d#|ƒ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--formattstoret list_formattchoicestlegacytcolumnstfreezetjsonsJSelect the output format among: legacy (default), columns, freeze or json.s--not-requiredt not_requireds>List packages that are not dependencies of installed packages.i(RRRR( tsuperR t__init__tcmd_optst add_optiontFalseR R tparsertinsert_option_group(tselftargstkwRt index_opts((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyR#s^      c C@s7td|jd|d|jd|jd|jd|ƒS(sK Create a package finder appropriate to this list command. t find_linkst index_urlstallow_all_prereleasest trusted_hoststprocess_dependency_linkstsession(RR'tpreR*R+(R#toptionsR(R,((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyt_build_package_findercs    cC@s)|jrtjdtƒn|jr8tjdtƒn|jrTtjdtƒn|jdkrvtjdtƒn|jr—|j r—t dƒ‚nt d|j d|j d|jƒ}|jrΩ|j||ƒ}n|j rχ|j||ƒ}n|jr|j||ƒ}n|j||ƒdS( Ns--allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s“--allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s‘--allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.sΗThe default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.s5Options --outdated and --uptodate cannot be combined.t local_onlyt user_onlyteditables_only(tallow_externaltwarningstwarnR tallow_all_externaltallow_unverifiedRtNonetoutdatedtuptodateRRtlocalRteditablet get_outdatedt get_uptodateRtget_not_requiredtoutput_package_listing(R#R.R$tpackages((s5/usr/lib/python2.7/site-packages/pip/commands/list.pytrunps<              cC@s5g|j||ƒD]}|j|jkr|^qS(N(titer_packages_latest_infostlatest_versiontparsed_version(R#RAR.tdist((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyR=¦scC@s5g|j||ƒD]}|j|jkr|^qS(N(RCRDRE(R#RAR.RF((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyR>¬sc@sQtƒ‰x+|D]#}ˆjd„|jƒDƒƒqWt‡fd†|DƒƒS(Ncs@s|]}|jVqdS(N(tkey(t.0t requirement((s5/usr/lib/python2.7/site-packages/pip/commands/list.pys ΅sc3@s$|]}|jˆkr|VqdS(N(RG(RHtpkg(tdep_keys(s5/usr/lib/python2.7/site-packages/pip/commands/list.pys Άs(tsettupdatetrequires(R#RAR.RF((RKs5/usr/lib/python2.7/site-packages/pip/commands/list.pyR?²s  !c c@sq|jg|j}|jr>tjddj|ƒƒg}ng}x6|D].}|jdƒrK|j|jdƒƒqKqKW|j |ƒί}|j |||ƒ}|j |ƒx³|D]«}d}|j |j ƒ} |jsg| D]} | jjsζ| ^qζ} n| sqΈnt| d|jƒ} | j} | jjrFd}nd}| |_||_|VqΈWWdQXdS(NsIgnoring indexes: %st,sdependency_links.txttunknownRGtwheeltsdist(t index_urltextra_index_urlstno_indextloggertdebugtjoint has_metadatatextendtget_metadata_linest_build_sessionR/tadd_dependency_linkstfind_all_candidatesRGR-tversiont is_prereleasetmaxt_candidate_sort_keytlocationtis_wheelRDtlatest_filetype( R#RAR.R(tdependency_linksRFR,tfinderttyptall_candidatest candidatetbest_candidatetremote_version((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyRCΈs:              cC@s>t|ƒr&d|j|j|jfSd|j|jfSdS(Ns %s (%s, %s)s%s (%s)(Rt project_nameR_Rc(R#RF((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyt output_legacyίs   cC@s d|j|ƒ|j|jfS(Ns%s - Latest: %s [%s](RnRDRe(R#RF((s5/usr/lib/python2.7/site-packages/pip/commands/list.pytoutput_legacy_latestιs cC@st|dd„ƒ}|jdkrR|rRt||ƒ\}}|j||ƒn­|jdkrŽx›|D]}tjd|j|jƒqhWnq|jdkrΆtjt||ƒƒnIxF|D]>}|j rεtj|j |ƒƒq½tj|j |ƒƒq½WdS(NRGcS@s |jjƒS(N(Rmtlower(RF((s5/usr/lib/python2.7/site-packages/pip/commands/list.pytσtRRs%s==%sR( tsortedRtformat_for_columnstoutput_package_listing_columnsRVtinfoRmR_tformat_for_jsonR9RoRn(R#RAR.tdatatheaderRF((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyR@πs     cC@s“t|ƒdkr%|jd|ƒnt|ƒ\}}t|ƒdkrq|jddjtd„|ƒƒƒnx|D]}tj|ƒqxWdS(Niit cS@sd|S(Nt-((tx((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyRq Rr(tlentinsertttabulateRXtmapRVRv(R#RxRyt pkg_stringstsizestval((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyRus( (t__name__t __module__t__doc__tnametusagetsummaryRR/RBR=R>R?RCRnRoR@Ru(((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyR s @ 6    '  cC@st|ƒdkst‚dgtd„|Dƒƒ}xK|D]C}gt||ƒD]'\}}t|tt|ƒƒƒ^qR}q<Wg}xm|D]e}djgt||ƒD]3\}}|dk rΩt|ƒj|ƒnd^q¬ƒ}|j|ƒqW||fS(Nics@s|]}t|ƒVqdS(N(R}(RHR|((s5/usr/lib/python2.7/site-packages/pip/commands/list.pys sRzRr( R}tAssertionErrorRaRtstrRXR8tljusttappend(tvalsR‚trowtstctresulttdisplay((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyRs A  IcC@sή|j}|r$ddddg}n ddg}g}td„|Dƒƒr\|jdƒnxu|D]m}|j|jg}|r€|j|jƒ|j|jƒnt|ƒrΓ|j|jƒn|j|ƒqcW||fS(s_ Convert the package data into something usable by output_package_listing_columns. tPackagetVersiontLatesttTypecs@s|]}t|ƒVqdS(N(R(RHR|((s5/usr/lib/python2.7/site-packages/pip/commands/list.pys 2stLocation( R9tanyRRmR_RDReRRc(tpkgsR.trunning_outdatedRyRxtprojR((s5/usr/lib/python2.7/site-packages/pip/commands/list.pyRt%s     cC@sƒg}xm|D]e}i|jd6tj|jƒd6}|jretj|jƒ|d<|j|ds&    ϋ  !