3

Q'ícJã	@s–ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZejeƒZddddddd	dff	d
d„ZdS)é)Úabsolute_importN)ÚInstallRequirement)Ú
COMMENT_RE)Úget_installed_distributions)Ú
pkg_resources)Úcanonicalize_name)ÚRequirementParseErrorFc	cs¸|pg}d}	|rtj|ƒj}	g}
x(tjD]}|jdƒr(|
j|jdƒƒq(Wx|D]}d|krP|
j|ƒqPWx|D]}d|VqpWi}
xXt	|f|dD]F}yt
jj||
ƒ}Wn$t
k
rÐtjd|jƒw–YnX||
|j<q–W|rvtƒ}x€|D]v}t|ƒb}xX|D]N}|jƒsL|jƒjdƒsL|	r@|	|ƒsL|jd!ƒrr|jƒ}||kr|j|ƒ|Vq|jdƒsŠ|jdƒrÖ|jdƒr¨|dd…jƒ}n|tdƒd…jƒjdƒ}tj||||d}ntjtjd|ƒjƒ||d}|jstjd||jƒƒtjdƒnD|j|
kr@tjd|tjd|ƒjƒƒnt |
|jƒjƒV|
|j=qWWdQRXqôWdVx<t!|
j"ƒdd„d D]$}t#|jƒ|krŒt |ƒjƒVqŒWdS)"Nzdependency_links.txtz#egg=z-f %s)Ú
local_onlyÚskipÚ	user_onlyzCould not parse requirement: %sú#ú-rú
--requirementú-Zú--always-unzipú-fú--find-linksú-iú--index-urlú--preú--trusted-hostú--process-dependency-linksú--extra-index-urlz-ez
--editableéú=)Údefault_vcsÚisolatedÚwheel_cacheÚ)rrzWSkipping line in requirement file [%s] because it's not clear what it would install: %sz9  (add #egg=PackageName to the URL to avoid this warning)zDRequirement file [%s] contains %s, but that package is not installedz7## The following requirements were added by pip freeze:cSs
|jjƒS)N)ÚnameÚlower)Úx©r"ú4/tmp/pip-build-l_bcah40/pip/pip/operations/freeze.pyÚ<lambda>‚szfreeze.<locals>.<lambda>)Úkey)r
rrrrrrrrrrr)$ÚreÚcompileÚsearchrÚworking_setÚhas_metadataÚextendÚget_metadata_linesÚappendrÚpipÚFrozenRequirementÚ	from_distrÚloggerÚwarningÚproject_namerÚsetÚopenÚstripÚ
startswithÚrstripÚaddÚlenÚlstriprÚ
from_editableÚ	from_linerÚsubÚinfoÚstrÚsortedÚvaluesr)ÚrequirementÚ
find_linksr	rÚ
skip_regexrrrr
Ú
skip_matchÚdependency_linksÚdistÚlinkÚ
installationsÚreqÚemitted_optionsÚ
req_file_pathÚreq_fileÚlineÚline_reqÚinstallationr"r"r#Úfreezes 






rR)Ú
__future__rÚloggingr&r.Úpip.reqrZpip.req.req_filerÚ	pip.utilsrÚpip._vendorrÚpip._vendor.packaging.utilsrZpip._vendor.pkg_resourcesrÚ	getLoggerÚ__name__r1rRr"r"r"r#Ú<module>s