관리-도구
편집 파일: list.cpython-36.opt-1.pyc
3 �Pfi, � @ s� d dl mZ d dlZd dlZd dlZyd dlmZ W n ek rT d dlmZ Y nX d dl m Z d dlmZ d dl mZ d dlmZ d d lmZmZ d d lmZ d dlmZmZ eje�ZG dd � d e�Zdd� Zdd� Zdd� ZdS )� )�absolute_importN)�zip_longest)�izip_longest)�six)�Command)�CommandError)� PackageFinder)�get_installed_distributions�dist_is_editable)�RemovedInPip10Warning)�make_option_group�index_groupc s| e Zd ZdZdZdZdZ� fdd�Zdd� Zd d � Z dd� Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Z� ZS )�ListCommandzt List installed packages, including editables. Packages are listed in a case-insensitive sorted order. �listz %prog [options]zList installed packages.c s� t t| �j||� | j}|jdddddd� |jddddd d� |jd ddddd� |jd ddddd� | jjdddddd� |jddddd� |jdddd$dd� |jddd d!d"� tt| j�}| jjd#|� | jjd#|� d S )%Nz-oz --outdated� store_trueFzList outdated packages)�action�default�helpz-uz --uptodatezList uptodate packagesz-ez --editablezList editable projects.z-lz--localzSIf in a virtualenv that has global access, do not list globally-installed packages.z--user�userz,Only output packages installed in user-site.)�destr r r z--prezYInclude pre-release and development versions. By default, pip only finds stable versions.z--formatZstore�list_format�legacy�columns�freeze�jsonzJSelect the output format among: legacy (default), columns, freeze or json.)r r �choicesr z--not-required�not_requiredz>List packages that are not dependencies of installed packages.)r r r r )r r r r ) �superr �__init__�cmd_optsZ add_optionr r �parserZinsert_option_group)�self�args�kwr Z index_opts)� __class__� �/usr/lib/python3.6/list.pyr # s^ zListCommand.__init__c C s t |j||j|j|j|d�S )zK Create a package finder appropriate to this list command. )� find_links� index_urlsZallow_all_prereleases� trusted_hosts�process_dependency_links�session)r r'