o ~Re@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 /builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-2.el8.x86_64/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)N install_lib)r r egg_infoz .egg-info)set_undefined_optionsget_finalized_command pkg_resources Distributionegg_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) run_commandrrisdirrislinkr remove_treerexistsexecuteunlinkrensure_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)srcdstskipr r rskimmer3s z*install_egg_info.copytree..skimmer)rrr)r r3r r rr)1s  zinstall_egg_info.copytreeN) __name__ __module__ __qualname____doc__ description user_optionsrrr*r+r)r r r rr s  r) distutilsrrr setuptoolsrrZsetuptools.archive_utilrrZ Installerrr r r rs