7i ddlZddlmZddlmZmZddlmZddlm Z ddl m Z ddl m Z ddlmZd efd Zd eefd ZGd d e Zy)N)Values) AbstractSetList) cmdoptions)Command)SUCCESS)freeze) stdlib_pkgsreturnc(tjdkS)N) )sys version_infof/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/pip/_internal/commands/freeze.py_should_suppress_build_backendsr s   g %%rc<dh}tr|hdz}|hdz}|S)Npip>wheel distribute setuptools> pkg-resourcesrrr)r)pkgss r _dev_pkgsrs* 7D&( 55 FF Krc:eZdZdZdZdZd dZdedee de fd Z y) FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. z %prog [options])ext://sys.stderrrr Nc |jjddddgdd|jjdd d d d d |jjddd d d|jjtj|jjddd dj dj t |jjddd d|jjtj|jjd|jy)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%s6    ' !     / !    ? !    !5!5!78   fTYYy{34 !    #8 !   !8!8!:; ''4==9roptionsargsc tt}|js|jt |j r|j|j t j|t|j|j|j|j|j||jD]$}tj j#|dz&t$S)N) requirement local_only user_onlypathsisolatedskipr- )setr r,updaterexcludesrcheck_list_path_optionr r!r)r+path isolated_moder-rstdoutwriter)r6r8r9r@lines rrunzFreezeCommand.runYs;!! KK $    KK(( )))'2,,}}ll,,**$55 *D JJ  TD[ ) *r)r N) __name__ __module__ __qualname____doc__usage log_streamsr7rrstrintrKrrrrrs7  E:K2:h6csrr)roptparsertypingrrpip._internal.clirpip._internal.cli.base_commandrpip._internal.cli.status_codesrpip._internal.operations.freezer pip._internal.utils.compatr boolrrRrrrrrr\sH $(2222&&;s#SGSr