Current File : //lib/python3.9/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-39.pyc
a

[��f��@sxddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZhd	�ZGd
d�de�ZdS)�N)�Values)�List)�
cmdoptions)�Command)�SUCCESS)�freeze)�stdlib_pkgs>ZpipZ
setuptoolsZ
distributeZwheelc@s<eZdZdZdZdZdd�dd�Zeee	e
d�d	d
�ZdS)�
FreezeCommandzx
    Output installed packages in requirements format.

    packages are listed in a case-insensitive sorted order.
    z
      %prog [options])�ext://sys.stderrr
N)�returnc	Cs�|jjddddgddd�|jjdd	d
ddd
d�|jjdddddd�|j�t���|jjdddd�d�t��d�|jjddddd�|j�t���|j�	d|j�dS)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.)rrrrz--user�userz,Only output packages installed in user-site.z--all�
freeze_allz,Do not skip these packages in the output: {}z, )rrrz--exclude-editable�exclude_editablez%Exclude editable package from output.r)
Zcmd_optsZ
add_optionrZ	list_path�format�join�DEV_PKGSZlist_exclude�parserZinsert_option_group)�self�r�A/usr/lib/python3.9/site-packages/pip/_internal/commands/freeze.py�add_optionssR�
����	�zFreezeCommand.add_options)�options�argsrc	Csptt�}|js|�t�|jr*|�|j�t�|�t|j	|j
|j|j|j
||jd�D]}tj�|d�qVtS)N)ZrequirementZ
local_onlyZ	user_only�paths�isolated�skipr�
)�setrr�updaterZexcludesrZcheck_list_path_optionrrrr�pathZ
isolated_moder�sys�stdout�writer)rr!r"r%�linerrr�runMs"

�
	zFreezeCommand.run)�__name__�
__module__�__qualname__�__doc__�usageZlog_streamsr rr�str�intr.rrrrr	s
4r	)r*Zoptparser�typingrZpip._internal.clirZpip._internal.cli.base_commandrZpip._internal.cli.status_codesrZpip._internal.operations.freezerZpip._internal.utils.compatrrr	rrrr�<module>s