HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_internal/commands/__pycache__/freeze.cpython-310.pyc
o

@%Ne��@sxddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZhd	�ZGd
d�de�ZdS)�N)�Values)�List)�
cmdoptions)�Command)�SUCCESS)�freeze)�stdlib_pkgs>�
pkg-resources�pip�wheel�
distribute�
setuptoolsc@s<eZdZdZdZdZddd�Zded	ee	de
fd
d�ZdS)
�
FreezeCommandzx
    Output installed packages in requirements format.

    packages are listed in a case-insensitive sorted order.
    z
      %prog [options])�ext://sys.stderrr�returnNc	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)
�cmd_opts�
add_optionr�	list_path�format�join�DEV_PKGS�list_exclude�parser�insert_option_group)�self�r(�?/usr/lib/python3/dist-packages/pip/_internal/commands/freeze.py�add_optionssP�
���	�zFreezeCommand.add_options�options�argsc	Csptt�}|js|�t�|jr|�|j�t�|�t|j	|j
|j|j|j
||jd�D]
}tj�|d�q+tS)N)�requirement�
local_only�	user_only�paths�isolated�skipr�
)�setrr�updater#�excludesr�check_list_path_optionrrrr�path�
isolated_moder�sys�stdout�writer)r'r+r,r2�liner(r(r)�runMs"


�	zFreezeCommand.run)rN)�__name__�
__module__�__qualname__�__doc__�usage�log_streamsr*rr�str�intr>r(r(r(r)rs
4r)r:�optparser�typingr�pip._internal.clir�pip._internal.cli.base_commandr�pip._internal.cli.status_codesr�pip._internal.operations.freezer�pip._internal.utils.compatrr#rr(r(r(r)�<module>s