ã“Re›ã@s~ddlmZmZddlZddlmZddlmZddlmZddl Z Gdd„dej eƒZ dS)é)ÚlogÚdir_utilN)ÚCommand)Ú namespaces)Úunpack_archivec@saeZdZdZdZdgZdd„Zdd„Zd d „Zd d „Z d d„Z dS)Úinstall_egg_infoz.Install an .egg-info directory for the packageú install-dir=Údúdirectory to install tocCs d|_dS)N)Ú install_dir)Úself©r ú™/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/install_egg_info.pyÚinitialize_optionssz#install_egg_info.initialize_optionscCs{|jddƒ|jdƒ}tjdd|j|jƒjƒd}|j|_tj j |j |ƒ|_ g|_ dS)NÚ install_libr Úegg_infoz .egg-info)r r )Úset_undefined_optionsÚget_finalized_commandÚ pkg_resourcesÚ DistributionÚegg_nameZ egg_versionrÚsourceÚosÚpathÚjoinr ÚtargetÚoutputs)r Zei_cmdÚbasenamer r rÚfinalize_optionss  z!install_egg_info.finalize_optionscCsÙ|jdƒtjj|jƒrTtjj|jƒ rTtj|jd|jƒn8tjj |jƒrŒ|j tj |jfd|jƒ|js¥t j |jƒ|j |jfd|j|jfƒ|jƒdS)NrÚdry_runz Removing zCopying %s to %s)Ú run_commandrrÚisdirrÚislinkrÚ remove_treerÚexistsÚexecuteÚunlinkrÚensure_directoryÚcopytreerZinstall_namespaces)r r r rÚrun!s +#  zinstall_egg_info.runcCs|jS)N)r)r r r rÚ get_outputs.szinstall_egg_info.get_outputscs,‡fdd†}tˆjˆj|ƒdS)Ncs[x1dD])}|j|ƒs,d||krdSqWˆjj|ƒtjd||ƒ|S)Nú.svn/úCVS/ú/zCopying %s to %s)r+r,)Ú startswithrÚappendrÚdebug)ÚsrcÚdstÚskip)r r rÚskimmer3s  z*install_egg_info.copytree..skimmer)rrr)r r4r )r rr(1s zinstall_egg_info.copytreeN)rr r ) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú descriptionÚ user_optionsrrr)r*r(r r r rr s    r) Ú distutilsrrrÚ setuptoolsrrZsetuptools.archive_utilrrZ Installerrr r r rÚs