3 ]{ @sdddlmZmZddlZddlZddlmZddlmZddlm Z ddl Z Gdddej eZ dS))logdir_utilN)Command) namespaces)unpack_archivec@sBeZdZdZdZdgZddZddZd d Zd d Z d dZ dS)install_egg_infoz.Install an .egg-info directory for the package install-dir=ddirectory to install tocCsd|_d|_d|_dS)N) install_dirinstall_layout prefix_option)selfrI/tmp/pip-build-8jg9gmni/setuptools/setuptools/command/install_egg_info.pyinitialize_optionssz#install_egg_info.initialize_optionscCs|jdd|jddtjdkr.|jdd|jd}tjdd|j|jjd}|jr|jj dkrpt d |jj |_|j d tj d }n$|j sd tjkrn|j d tj d }|j|_tjj|j||_g|_dS)N install_libr installr ir egg_infoz .egg-infodebz"unknown value for --install-layoutz-py%s real_prefix)r r )r r )r r )r)set_undefined_optionssys hexversionget_finalized_command pkg_resources Distributionegg_nameZ egg_versionr lowerDistutilsOptionErrorreplacePY_MAJORr __dict__rsourceospathjoinr targetoutputs)rZei_cmdbasenamerrrfinalize_optionss(     z!install_egg_info.finalize_optionscCs|jdtjj|jr.skimmer)rr$r()rrBr)rrr5Bs zinstall_egg_info.copytreeN)rr r ) __name__ __module__ __qualname____doc__ description user_optionsrr+r6r7r5rrrrr s r) distutilsrrr%r setuptoolsrrZsetuptools.archive_utilrrZ Installerrrrrrs