a ˆåÏh›ã@s\ddlmZmZddlZddlmZddlmZddlmZddl Z Gdd„dej eƒZ dS)é)ÚlogÚdir_utilN)ÚCommand)Ú namespaces)Úunpack_archivec@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 úG/usr/lib/python3.9/site-packages/setuptools/command/install_egg_info.pyÚinitialize_optionssz#install_egg_info.initialize_optionscCsV| dd¡| d¡}t dd|j|j¡ ¡d}|j|_tj   |j |¡|_ g|_ dS)NZ install_lib)r r Úegg_infoz .egg-info)Zset_undefined_optionsZget_finalized_commandÚ pkg_resourcesZ DistributionZegg_nameZ egg_versionrÚsourceÚosÚpathÚjoinr ÚtargetÚoutputs)r Zei_cmdÚbasenamer r rÚ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¡|jstt   |j¡|  |jdd|j|jf¡| ¡dS)Nr)Údry_runz Removing r úCopying %s to %s)Z run_commandrrÚisdirrÚislinkrZ remove_treerÚexistsZexecuteÚunlinkrZensure_directoryÚcopytreerZinstall_namespacesr r r rÚrun!s  ÿzinstall_egg_info.runcCs|jSr )rr r r rÚ 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 r rÚskimmer3s  z*install_egg_info.copytree..skimmer)rrr)r r*r r rr 1s zinstall_egg_info.copytreeN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú descriptionZ user_optionsrrr!r"r r r r rr sÿ  r) Z distutilsrrrZ setuptoolsrrZsetuptools.archive_utilrrZ Installerrr r r rÚs