Current File : //proc/2/root/opt/alt/python35/lib/python3.5/site-packages/pip/commands/freeze.pyc
�
�wMVc@s�ddlZddlZddlZddlmZddlmZddlmZddl m
Z
ddlmZdefd��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�|jjdd
dddddgddd
d�|jjdddddddtd
d�|jjd|j�dS(Ns-rs
--requirementtdesttrequirementtactiontstoretdefaulttmetavartfilethelpsVUse 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/python35/lib/python3.5/site-packages/pip/commands/freeze.pyRs, cCstj�dS(N(Rtmove_stdout_to_stderr(R((sD/opt/alt/python35/lib/python3.5/site-packages/pip/commands/freeze.pyt
setup_logging-scCs�|j}|jpg}|j}t}d}|j}|rNtj|�}ng} tj }
x9t
jD].}|jd�rg| j
|jd��qgqgWx*|D]"}d|kr�| j|�q�q�Wx|D]}|
jd|�q�Wi}
x?td|�D].}tjj|| d|�}||
|j<q�W|rft|�}x|D] }|j�sq|j�jd�r�|
j|�qIn|r�|j|�r�|
j|�qIn#|jd�s�|jd�r&|jd�r�|d j�}n|td�j�jd
�}tj|d|j�}n�|jd�s�|jd
�s�|jd�s�|jd�s�|jd�s�|jd�s�|jd�s�|jd�s�|jd�r�|
j|�qIntj|�}|jst j!d|j��t j!d�qIn|j|
kr.t j"d|j��qIn|
jt#|
|j��|
|j=qIW|
jd�nx6t$|
j%�dd��D]}|
jt#|��q�WdS(Nsdependency_links.txts#egg=s-f %s
t
local_onlyt find_tagst#s-es
--editableit=tdefault_vcss-rs
--requirements-Zs--always-unzips-fs-is--extra-index-urls--find-linkss--index-urls>Skipping 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/python35/lib/python3.5/site-packages/pip/commands/freeze.pyt<lambda>qs(&RRRRRtskip_requirements_regextretcompiletsyststdoutRtworking_setthas_metadatatextendtget_metadata_linesRtwriteRtpiptFrozenRequirementt from_distR'topentstript
startswithtsearchtlentlstripRt
from_editableR%t from_lineRtnotifytwarntstrtsortedtvalues(RtoptionsRRRR!R"t
skip_matcht
skip_regextdependency_linkstftdisttlinkt
installationstreqtreq_ftlinetline_reqtinstallation((sD/opt/alt/python35/lib/python3.5/site-packages/pip/commands/freeze.pytrun0sv
"
"( t__name__t
__module__t__doc__R'tusagetsummaryRR RQ(((sD/opt/alt/python35/lib/python3.5/site-packages/pip/commands/freeze.pyRs (R+R-R4tpip.reqRtpip.logRtpip.basecommandRtpip.utilRtpip._vendorRR(((sD/opt/alt/python35/lib/python3.5/site-packages/pip/commands/freeze.pyt<module>s