3 ig @s|ddlZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd d d d hZGd ddeZdS)N)Values)List) cmdoptions)Command)SUCCESS)freeze) stdlib_pkgspip setuptools distributewheelc@s<eZdZdZdZd ZddddZeee 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.stderrN)returnc Cs|jjddddgddd|jjdd d d d d d|jjddd d dd|jjtj|jjddd djdjtd|jjddd dd|jjtj|jj 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_optionrZ list_pathformatjoinDEV_PKGSZ list_excludeparserinsert_option_group)selfr%s