~%0xb d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZ de fd Zdee fd Z G d de ZdS ) N)Values) cmdoptions)Command)SUCCESS)freeze)stdlib_pkgsreturnc " t j dk S )N) )sysversion_info o/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/commands/freeze.py_should_suppress_build_backendsr s g%%r c 6 dh} t r| h dz } | S )Npip> wheel distribute setuptools)r )pkgss r _dev_pkgsr s- 7D&(( 65555Kr c B e Zd ZdZdZdZd dZdedee de fd ZdS ) FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. Tz %prog [options]r Nc | j ddddg dd | j dd d ddd | j ddddd | j t j | j dddd d t | j dddd | j t j | j d| j d S )Nz-rz --requirementrequirementsappendfilez}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=99999r optionsargsc t t }|j s!| t |j r| |j t j | t |j |j |j |j |j ||j D ]$}t j |dz %t$ S )N)requirement local_only user_onlypathsisolatedskipr) )setr r( updater excludesr check_list_path_optionr r r% r' path isolated_moder) r stdoutwriter )r2 r4 r5 r<