3

Q'ícã@sdddlmZddlZddlZddlmZddlmZddlm	Z	ddl
mZd
ZGdd„deƒZ
dS)é)Úabsolute_importN)Ústdlib_pkgs)ÚCommand)Úfreeze)Ú
WheelCacheÚpipÚ
setuptoolsÚ
distributeÚwheelcs8eZdZdZdZdZdZd
Z‡fdd„Zdd	„Z	‡Z
S)Ú
FreezeCommandzx
    Output installed packages in requirements format.

    packages are listed in a case-insensitive sorted order.
    rz
      %prog [options]z1Output installed packages in requirements format.úext://sys.stderrc	s¦tt|ƒj||Ž|jjddddgddd|jjdd	d
dgddd|jjd
dddddd|jjdddddd|jjdddddjtƒd|jjd|jƒdS)Nz-rz
--requirementÚrequirementsÚappendÚfilez}Use the order in the given requirements file and its comments when generating output. This option can be used multiple times.)ÚdestÚactionÚdefaultÚmetavarÚhelpz-fz--find-linksÚ
find_linksÚURLz<URL for finding packages, which will be added to the output.z-lz--localÚlocalÚ
store_trueFzUIf in a virtualenv that has global access, do not output globally-installed packages.)rrrrz--userÚuserz,Only output packages installed in user-site.z--allÚ
freeze_allz,Do not skip these packages in the output: %sz, )rrrr)	ÚsuperrÚ__init__Úcmd_optsÚ
add_optionÚjoinÚDEV_PKGSÚparserÚinsert_option_group)ÚselfÚargsÚkw)Ú	__class__©ú2/tmp/pip-build-l_bcah40/pip/pip/commands/freeze.pyrsDzFreezeCommand.__init__c
Cs‚tjjtƒtƒƒ}t|j|ƒ}ttƒ}|js6|jt	ƒt
|j|j|j
|j|j|j||d}x"tf|ŽD]}tjj|dƒqfWdS)N)ÚrequirementrÚ
local_onlyÚ	user_onlyÚ
skip_regexÚisolatedÚwheel_cacheÚskipÚ
)rÚindexÚ
FormatControlÚsetrÚ	cache_dirrrÚupdater Údictr
rrrÚskip_requirements_regexÚ
isolated_moderÚsysÚstdoutÚwrite)r#Úoptionsr$Úformat_controlr.r/Ú
freeze_kwargsÚliner'r'r(ÚrunEs 
zFreezeCommand.run)rr)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚusageÚsummaryÚlog_streamsrr@Ú
__classcell__r'r')r&r(rs*r)rrr	r
)Ú
__future__rr9rÚ
pip.compatrÚpip.basecommandrÚpip.operations.freezerÚ	pip.wheelrr rr'r'r'r(Ú<module>s