관리-도구
편집 파일: freeze.cpython-38.pyc
U &?�f� � @ s� d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZ ed �d d�Zee d �dd �ZG dd� de �ZdS )� N)�Values)�AbstractSet�List)� cmdoptions)�Command)�SUCCESS)�freeze)�stdlib_pkgs��returnc C s t jdk S )N)� � )�sys�version_info� r r �K/opt/hc_python/lib/python3.8/site-packages/pip/_internal/commands/freeze.py�_should_suppress_build_backends s r c C s dh} t � r| dddhO } | S )N�pip� setuptoolsZ distribute�wheel)r )�pkgsr r r � _dev_pkgs s r c @ s@ e Zd ZdZdZdZdZdd�dd�Zee e ed �d d�ZdS )� FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. Tz %prog [options])�ext://sys.stderrr Nr c C s� | j jddddg ddd� | j jdd d ddd d� | j jdddddd� | j �t�� � | j jdddd�d�t� ��d� | j jddddd� | j �t�� � | j� d| j � d S )Nz-rz --requirement�requirements�append�filez}Use the order in the given requirements file and its comments when generating output. This option can be used multiple times.)�dest�action�default�metavar�helpz-lz--local�local� store_trueFzUIf in a virtualenv that has global access, do not output globally-installed packages.)r r r r! z--user�userz,Only output packages installed in user-site.z--all� freeze_allz,Do not skip these packages in the output: {}z, )r r r! z--exclude-editable�exclude_editablez%Exclude editable package from output.r ) �cmd_opts� add_optionr � list_path�format�joinr �list_exclude�parser�insert_option_group)�selfr r r �add_options% sR � �� �� �zFreezeCommand.add_options)�options�argsr c C sr t t�}|js|�t� � |jr,|�|j� t�|� t|j |j |j|j|j ||jd�D ]}tj�|d � qXtS )N)�requirement� local_only� user_only�paths�isolated�skipr&