Re ddlZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZhd ZGd d eZdS) N)Values)List) cmdoptions)Command)SUCCESS)freeze) stdlib_pkgs>pipwheel distribute setuptoolscBeZdZdZdZdZd dZdedee de fd Z dS) FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. z %prog [options])ext://sys.stderrrreturnNc |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.)rrrrz--useruserz,Only output packages installed in user-site.z--all freeze_allz,Do not skip these packages in the output: {}z, )rrrz--exclude-editableexclude_editablez%Exclude editable package from output.r) cmd_opts add_optionr list_pathformatjoinDEV_PKGS list_excludeparserinsert_option_group)selfs /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/commands/freeze.py add_optionszFreezeCommand.add_optionssr    ' !     / !    ? !      !5!7!7888   fTYYx0011 !      #8 !     !8!:!:;;; ''4=99999optionsargsc tt}|js|t|jr||jt j|t|j |j |j |j |j ||jD]$}tj|dz%t$S)N) requirement local_only user_onlypathsisolatedskipr )setr rupdater%excludesrcheck_list_path_optionrrrrpath isolated_modersysstdoutwriter)r)r-r.r5lines r*runzFreezeCommand.runMs;! " KK ! ! !   * KK( ) ) ))'222,}l,*$5   * *D J  TD[ ) ) ) )r,)rN) __name__ __module__ __qualname____doc__usage log_streamsr+rrstrintrAr,r*rrsl  E:K2:2:2:2:h6csr,r)r=optparsertypingrpip._internal.clirpip._internal.cli.base_commandrpip._internal.cli.status_codesrpip._internal.operations.freezerpip._internal.utils.compatr r%rrJr,r*rRs ((((((222222222222222222222222 7 7 7SSSSSGSSSSSr,