U ja5 @s|ddlZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd d d d hZGd ddeZdS)N)Values)List) cmdoptions)Command)SUCCESS)freeze) stdlib_pkgspip setuptoolsZ distributewheelc@s<eZdZdZdZdZddddZeee e dd d Z dS) FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. z %prog [options])ext://sys.stderrr N)returnc Cs|jjddddgddd|jjdd d d d d d|jjddd d dd|jt|jjddd ddtd|jjddd dd|jt|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_PKGSZ list_excludeparserinsert_option_group)selfr%u/private/var/folders/k6/_7fsz4ts3b78x3b3xwrxjh_c8s8xv7/T/pip-unpacked-wheel-bug3gbve/pip/_internal/commands/freeze.py add_optionssR zFreezeCommand.add_options)optionsargsrc Csptt}|js|t|jr*||jt|t|j |j |j |j |j ||jdD]}tj|dqVtS)N) requirement local_only user_onlypathsisolatedskipr )setrrupdater!Zexcludesrcheck_list_path_optionrrrrpath isolated_modersysstdoutwriter)r$r(r)r/liner%r%r&run@s"    zFreezeCommand.run) __name__ __module__ __qualname____doc__usage log_streamsr'rrstrintr:r%r%r%r&r s 'r )r6optparsertypingrZpip._internal.clirpip._internal.cli.base_commandrpip._internal.cli.status_codesrZpip._internal.operations.freezerpip._internal.utils.compatrr!r r%r%r%r&s