a oe@s`ddlmZmZddlZddlmZddlmZddlmZddl m Z Gdd d ej eZ dS) )logdir_utilN)Command) namespaces)unpack_archive)ensure_directoryc@sBeZdZdZdZdgZddZddZddZd 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|_dSN) install_dirselfrDC:\Program Files\Certbot\pkgs\setuptools\command\install_egg_info.pyinitialize_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_basenamersourceospathjoinr targetoutputs)rZei_cmdbasenamerrrfinalize_optionss   z!install_egg_info.finalize_optionscCs|dtj|jr:tj|js:tj|j|jdn(tj |jrb| tj |jfd|j|jsrt |j| |j dd|j|jf|dS)Nr)dry_runz Removing rCopying %s to %s)Z run_commandrrisdirrislinkrZ remove_treerexistsZexecuteunlinkrcopytreerZinstall_namespacesr rrrruns  zinstall_egg_info.runcCs|jSr )rr rrr get_outputs)szinstall_egg_info.get_outputscs fdd}tjj|dS)NcsDdD] }||sd||vrdSqj|td|||S)N)z.svn/zCVS//r) startswithrappendrdebug)srcdstskipr rrskimmer.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 rrrrs