abc @@sddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZejeZddddddedd d ZdS( i(tabsolute_importN(tInstallRequirement(t COMMENT_RE(tget_installed_distributions(t pkg_resources(tcanonicalize_name(tRequirementParseErrorc c@s|p g}d} |r-tj|j} ng} x9tjD].} | jdr=| j| jdq=q=Wx*|D]"} d| krv| j | qvqvWx|D]} d| VqWi} xst d|dd#d|D]V} yt j j | | }Wn'tk r tjd| jqnX|| |jR(( s-rs --requirements-Zs--always-unzips-fs --find-linkss-is --index-urls--pres--trusted-hosts--process-dependency-linkss--extra-index-url(%tNonetretcompiletsearchRt working_sett has_metadatatextendtget_metadata_linestappendRtpiptFrozenRequirementt from_distRtloggertwarningt project_nameRtsettopentstript startswithtrstriptaddtlentlstripRt from_editablet from_lineRtsubtinfotstrtsortedtvaluesR(t requirementt find_linksRR t skip_regexR R RRt skip_matchtdependency_linkstdisttlinkt installationstreqtemitted_optionst req_file_pathtreq_filetlinetline_reqt installation((s9/usr/lib/python2.7/site-packages/pip/operations/freeze.pytfreezes                      ((t __future__RtloggingRRtpip.reqRtpip.req.req_fileRt pip.utilsRt pip._vendorRtpip._vendor.packaging.utilsRtpip._vendor.pkg_resourcesRt getLoggert__name__R!RtFalseRB(((s9/usr/lib/python2.7/site-packages/pip/operations/freeze.pyts