kghH ddlZddlmZddlmZmZddlmZddlm Z ddl m Z ddl m Z ddlmZd efd Zd eefd ZGd d e ZdS)N)Values) AbstractSetList) cmdoptions)Command)SUCCESS)freeze) stdlib_pkgsreturnc"tjdkS)N) )sys version_info}/builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/commands/freeze.py_should_suppress_build_backendsr s  g %%rc6dh}tr|hdz}|S)Npip>wheel distribute setuptools)r)pkgss r _dev_pkgsrs- 7D&((6 5555 KrcBeZdZdZdZdZd dZdedee de fd Z dS) FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. Tz %prog [options]r Nc |jddddgdd|jdd d d d d |jddd d d|jtj|jddd ddt |jddd d|jtj|j d|jdS)Nz-rz --requirement requirementsappendfilez}Use the order in the given requirements file and its comments when generating output. This option can be used multiple times.)destactiondefaultmetavarhelpz-lz--locallocal store_trueFzUIf in a virtualenv that has global access, do not output globally-installed packages.)r"r#r$r&z--useruserz,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-editableexclude_editablez%Exclude editable package from output.r) cmd_opts add_optionr list_pathformatjoinr list_excludeparserinsert_option_group)selfs r add_optionszFreezeCommand.add_options$sv    ' !     / !    ? !      !5!7!7888   fTYYy{{3344 !      #8 !     !8!:!:;;; ''4=99999roptionsargsc tt}|js!|t |jr||jt j|t|j |j |j |j |j ||jD]$}tj|dz%t$S)N) requirement local_only user_onlypathsisolatedskipr+ )setr r*updaterexcludesrcheck_list_path_optionr rr'r)path isolated_moder+rstdoutwriter)r4r6r7r>lines rrunzFreezeCommand.runXs;! % KK $ $ $   * KK( ) ) ))'222,}l,*$5   * *D J  TD[ ) ) ) )r)r N) __name__ __module__ __qualname____doc__ignore_require_venvusager5rrstrintrIrrrrrso  E2:2:2:2:h6csrr)roptparsertypingrrpip._internal.clirpip._internal.cli.base_commandrpip._internal.cli.status_codesrpip._internal.operations.freezer pip._internal.utils.compatr boolrrPrrrrrrZs  $$$$$$$$((((((222222222222222222222222&&&&&;s#SSSSSGSSSSSr