o )a@s\ddlmZmZddlZddlmZddlmZddlmZddl Z Gdddej eZ dS))logdir_utilN)Command) namespaces)unpack_archivec@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_dirselfr V/opt/alt/python310/lib/python3.10/site-packages/setuptools/command/install_egg_info.pyinitialize_optionss z#install_egg_info.initialize_optionscCsV|dd|d}tdd|j|jd}|j|_tj |j ||_ g|_ dS)NZ install_lib)r r egg_infoz .egg-info)Zset_undefined_optionsZget_finalized_command pkg_resourcesZ DistributionZegg_nameZ egg_versionrsourceospathjoinr targetoutputs)r Zei_cmdbasenamer r rfinalize_optionss   z!install_egg_info.finalize_optionscCs|dtj|jrtj|jstj|j|jdntj |jr1| tj |jfd|j|js:t |j| |jdd|j|jf|dS)Nr)dry_runz Removing r Copying %s to %s)Z run_commandrrisdirrislinkrZ remove_treerexistsZexecuteunlinkrZensure_directorycopytreerZinstall_namespacesr r r rrun!s   zinstall_egg_info.runcCs|jSr )rr r r r get_outputs.szinstall_egg_info.get_outputscs fdd}tjj|dS)NcsDdD]}||sd||vrdSqj|td|||S)N)z.svn/zCVS//r) startswithrappendrdebug)srcZdstskipr r rskimmer3s 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 rs