� ��abc @@ s, d d l m Z d d l Z d d l Z d d l Z y d d l m Z Wn! e k rk d d l m Z n Xd d l m Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z m Z e j e � Z d e f d � � YZ d � Z d � Z d � Z d S( i ( t absolute_importN( t zip_longest( t izip_longest( t six( t Command( t CommandError( t PackageFinder( t get_installed_distributionst dist_is_editable( t RemovedInPip10Warning( t make_option_groupt index_groupt ListCommandc B@ s� e Z d Z d Z d Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( st List installed packages, including editables. Packages are listed in a case-insensitive sorted order. t lists %prog [options]s List installed packages.c O@ sq t t | � j | | � | j } | j d d d d d t d d �| j d d d d d t d d �| j d d d d d t d d �| j d d d d d t d d �| j j d d d d d d t d d �| j d d d d t d d �| j d d d d d d d$ d d �| j d d d d d! d d" �t t | j � } | j j d# | � | j j d# | � d S(% Ns -os --outdatedt actiont store_truet defaultt helps List outdated packagess -us --uptodates List uptodate packagess -es --editables List editable projects.s -ls --localsS If in a virtualenv that has global access, do not list globally-installed packages.s --usert destt users, Only output packages installed in user-site.s --presY Include pre-release and development versions. By default, pip only finds stable versions.s --formatt storet list_formatt choicest legacyt columnst freezet jsonsJ Select 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 ( R R R R ( t superR t __init__t cmd_optst add_optiont FalseR R t parsert insert_option_group( t selft argst kwR t index_opts( ( s5 /usr/lib/python2.7/site-packages/pip/commands/list.pyR # s^ c C@ s7 t d | j d | d | j d | j d | j d | � S( sK Create a package finder appropriate to this list command. t find_linkst index_urlst allow_all_prereleasest trusted_hostst process_dependency_linkst session( R R' t preR* R+ ( R# t optionsR( R, ( ( s5 /usr/lib/python2.7/site-packages/pip/commands/list.pyt _build_package_finderc s c C@ s) | j r t j d t � n | j r8 t j d t � n | j rT t j d t � n | j d k rv t j d t � n | j r� | j r� t d � � n t d | j d | j d | j � } | j r� | j | | � } n | j r� | j | | � } n | j r| j | | � } n | j | | � d S( 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.s5 Options --outdated and --uptodate cannot be combined.t local_onlyt user_onlyt editables_only( t allow_externalt warningst warnR t allow_all_externalt allow_unverifiedR t Nonet outdatedt uptodateR R t localR t editablet get_outdatedt get_uptodateR t get_not_requiredt output_package_listing( R# R. R$ t packages( ( s5 /usr/lib/python2.7/site-packages/pip/commands/list.pyt runp s<