HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-39.pyc
a

?�f|
�@s�ddlmZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZdd
lmZhd�Zer�ddlmZdd
lmZGdd�de�ZdS)�)�absolute_importN)�
WheelCache)�
cmdoptions)�Command)�SUCCESS)�
FormatControl)�freeze)�stdlib_pkgs)�MYPY_CHECK_RUNNING>Z
distributeZpipZ
setuptoolsZwheel)�Values)�Listc@s(eZdZdZdZdZdd�Zdd�ZdS)	�
FreezeCommandzx
    Output installed packages in requirements format.

    packages are listed in a case-insensitive sorted order.
    z
      %prog [options])�ext://sys.stderrrc	Cs�|jjddddgddd�|jjdd	d
dgddd�|jjd
dddddd�|jjdddddd�|j�t���|jjdddd�d�t��d�|jjddddd�|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-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.)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_PKGS�parserZinsert_option_group)�self�r"�A/usr/lib/python3.9/site-packages/pip/_internal/commands/freeze.py�add_options s\�	������zFreezeCommand.add_optionscCs�tt�t��}t|j|�}tt�}|js2|�t�t�	|�t
|j|j|j
|j|j|j|||jd�	}tfi|��D]}tj�|d�qrtS)N)	ZrequirementrZ
local_onlyZ	user_only�paths�isolated�wheel_cache�skipr�
)r�setrZ	cache_dirr	r�updaterrZcheck_list_path_option�dictrrrr�pathZ
isolated_moderr�sys�stdout�writer)r!�options�argsZformat_controlr'r(Z
freeze_kwargs�liner"r"r#�runOs(

�zFreezeCommand.runN)�__name__�
__module__�__qualname__�__doc__ZusageZlog_streamsr$r4r"r"r"r#r
s
/r
)Z
__future__rr.Zpip._internal.cacherZpip._internal.clirZpip._internal.cli.base_commandrZpip._internal.cli.status_codesrZ#pip._internal.models.format_controlrZpip._internal.operations.freezerZpip._internal.utils.compatr	Zpip._internal.utils.typingr
rZoptparser�typingrr
r"r"r"r#�<module>s