File: //usr/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-39.pyc
a
?�f|
� @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ d d lmZ d d
lmZ h d�Zer�d dlmZ d d
lmZ G dd� de�ZdS )� )�absolute_importN)�
WheelCache)�
cmdoptions)�Command)�SUCCESS)�
FormatControl)�freeze)�stdlib_pkgs)�MYPY_CHECK_RUNNING> Z
distributeZpipZ
setuptoolsZwheel)�Values)�Listc @ s( e Zd ZdZdZdZdd� Zdd� ZdS ) �
FreezeCommandzx
Output installed packages in requirements format.
packages are listed in a case-insensitive sorted order.
z
%prog [options])�ext://sys.stderrr c C s� | j jddddg ddd� | j jdd d
dg ddd� | j jd
dddddd� | j jdddddd� | j �t�� � | j jdddd�d�t��d� | j jddddd� | 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-fz--find-links�
find_linksZURLz<URL for finding packages, which will be added to the output.z-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 ) Zcmd_optsZ
add_optionr Z list_path�format�join�DEV_PKGS�parserZinsert_option_group)�self� r"