a „oeã@s`ddlmZmZddlZddlmZddlmZddlmZddl m Z Gdd „d ej eƒZ dS) é)ÚlogÚdir_utilN)ÚCommand)Ú namespaces)Úunpack_archiveé)Úensure_directoryc@sBeZdZdZdZdgZdd„Zdd„Zdd„Zd d „Z d d „Z d S)Úinstall_egg_infoz.Install an .egg-info directory for the package)z install-dir=Údzdirectory to install tocCs d|_dS©N)Ú install_dir©Úself©rúDC:\Program Files\Certbot\pkgs\setuptools\command\install_egg_info.pyÚinitialize_optionssz#install_egg_info.initialize_optionscCsH| dd¡| d¡}| ¡›d�}|j|_tj |j|¡|_ g|_ dS)NZ install_lib)r r Úegg_infoz .egg-info) Zset_undefined_optionsZget_finalized_commandZ_get_egg_basenamerÚsourceÚosÚpathÚjoinr ÚtargetÚoutputs)rZei_cmdÚbasenamerrrÚfinalize_optionss   z!install_egg_info.finalize_optionscCsš| d¡tj |j¡r:tj |j¡s:tj|j|jd�n(tj  |j¡rb|  tj |jfd|j¡|jsrt |jƒ|  |j dd|j|jf¡| ¡dS)Nr)Údry_runz Removing rúCopying %s to %s)Z run_commandrrÚisdirrÚislinkrZ remove_treerÚexistsZexecuteÚunlinkrÚcopytreerZinstall_namespacesr rrrÚruns  zinstall_egg_info.runcCs|jSr )rr rrrÚ get_outputs)szinstall_egg_info.get_outputscs ‡fdd„}tˆjˆj|ƒdS)NcsDdD] }| |¡sd||vrdSqˆj |¡t d||¡|S)N)z.svn/zCVS/ú/r)Ú startswithrÚappendrÚdebug)ÚsrcÚdstÚskipr rrÚskimmer.s  z*install_egg_info.copytree..skimmer)rrr)rr+rr rr!,s zinstall_egg_info.copytreeN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú descriptionZ user_optionsrrr"r#r!rrrrr sÿ r ) Z distutilsrrrZ setuptoolsrrZsetuptools.archive_utilrÚ_pathrZ Installerr rrrrÚs