î œ0{Y8ã@sŽddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z Gdd„deƒZ dS) éN)ÚInstallRequirement)Úlogger)ÚCommand)Úget_installed_distributions)Ú pkg_resourcescsReZdZdZdZdZdZ‡fdd†Zdd„Zdd „Z ‡S) Ú FreezeCommandz1Output installed packages in requirements format.Úfreezez %prog [options]c sÀtt|ƒj||Ž|jjdddddddddd d d ƒ|jjd d dddddgddd dƒ|jjddddddddd dƒ|jjd|jƒdS)Nz-rz --requirementÚdestÚ requirementÚactionÚstoreÚdefaultÚmetavarÚfileÚhelpzVUse the order in the given requirements file and it's comments when generating output.z-fz --find-linksÚ find_linksÚappendÚURLzSkipping line because it's not clear what it would install: %sz9 (add #egg=PackageName to the URL to avoid this warning)z?Requirement file contains %s, but that package is not installedz:## The following requirements were added by pip --freeze: ÚkeycSs|jS)N)Úname)Úxr r r!Úqsz#FreezeCommand.run..)$r rrÚskip_requirements_regexÚreÚcompileÚsysÚstdoutrÚ working_setÚ has_metadataÚextendÚget_metadata_linesrÚwriterÚpipÚFrozenRequirementÚ from_distr+ÚopenÚstripÚ startswithÚsearchÚlenÚlstriprÚ from_editabler)Ú from_linerÚnotifyÚwarnÚstrÚsortedÚvalues)rÚoptionsrr rr$r%Ú skip_matchÚ skip_regexÚdependency_linksÚfÚdistÚlinkÚ installationsÚreqÚreq_fÚlineÚline_reqÚ installationr r r!Úrun0sv         "  %     %zFreezeCommand.run) Ú__name__Ú __module__Ú __qualname__Ú__doc__r+ÚusageÚsummaryrr#rUr r )rr!r s  r)r/r1r8Úpip.reqrÚpip.logrÚpip.basecommandrÚpip.utilrÚ pip._vendorrrr r r r!Ús