ó œ0{Yc@sŽddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z defd„ƒYZ dS( i˙˙˙˙N(tInstallRequirement(tlogger(tCommand(tget_installed_distributions(t pkg_resourcest FreezeCommandcBs;eZdZdZdZdZd„Zd„Zd„ZRS(s1Output installed packages in requirements format.tfreezes %prog [options]c OsÀtt|ƒj||Ž|jjdddddddddd d d ƒ|jjd d dddddgddd dƒ|jjdddddddtd dƒ|jjd|jƒdS(Ns-rs --requirementtdestt requirementtactiontstoretdefaulttmetavartfilethelpsVUse the order in the given requirements file and it's comments when generating output.s-fs --find-linkst find_linkstappendtURLs<URL for finding packages, which will be added to the output.s-ls--localtlocalt store_truesUIf in a virtualenv that has global access, do not output globally-installed packages.i( tsuperRt__init__tcmd_optst add_optiontNonetFalsetparsertinsert_option_group(tselftargstkw((sD/opt/alt/python34/lib/python3.4/site-packages/pip/commands/freeze.pyRs,      cCstjƒdS(N(Rtmove_stdout_to_stderr(R((sD/opt/alt/python34/lib/python3.4/site-packages/pip/commands/freeze.pyt setup_logging-scCs£|j}|jpg}|j}t}d}|j}|rNtj|ƒ}ng} tj } x9t j D].} | j dƒrg| j | jdƒƒqgqgWx*|D]"} d| kr | j| ƒq q Wx|D]} | jd| ƒqÍWi} x?td|ƒD].} tjj| | d|ƒ}|| |jSkipping line because it's not clear what it would install: %ss9 (add #egg=PackageName to the URL to avoid this warning)s?Requirement file contains %s, but that package is not installeds:## The following requirements were added by pip --freeze: tkeycSs|jS(N(tname(tx((sD/opt/alt/python34/lib/python3.4/site-packages/pip/commands/freeze.pytqs(&RRRRRtskip_requirements_regextretcompiletsyststdoutRt working_sett has_metadatatextendtget_metadata_linesRtwriteRtpiptFrozenRequirementt from_distR'topentstript startswithtsearchtlentlstripRt from_editableR%t from_lineRtnotifytwarntstrtsortedtvalues(RtoptionsRRRR!R"t skip_matcht skip_regextdependency_linkstftdisttlinkt installationstreqtreq_ftlinetline_reqt installation((sD/opt/alt/python34/lib/python3.4/site-packages/pip/commands/freeze.pytrun0sv         "       "( t__name__t __module__t__doc__R'tusagetsummaryRR RQ(((sD/opt/alt/python34/lib/python3.4/site-packages/pip/commands/freeze.pyR s  (R+R-R4tpip.reqRtpip.logRtpip.basecommandRtpip.utilRt pip._vendorRR(((sD/opt/alt/python34/lib/python3.4/site-packages/pip/commands/freeze.pyts