o Cf{ @sdddlmZmZddlZddlZddlmZddlmZddlm Z ddl 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 tocCsd|_d|_d|_dSN) install_dirinstall_layout prefix_optionselfrE/usr/lib/python3/dist-packages/setuptools/command/install_egg_info.pyinitialize_optionss z#install_egg_info.initialize_optionscCs|dd|ddtjdkr|dd|d}tdd|j|jd}|jrH|j d vr8t d |j |_| d tj d }n|j sPd tjvrQn | d tj d }|j|_tj|j||_g|_dS)N install_lib)r r install)r r i)r r egg_infoz .egg-infodebz"unknown value for --install-layoutz-py%s real_prefix)set_undefined_optionssys hexversionget_finalized_command pkg_resources Distributionegg_name egg_versionr lowerDistutilsOptionErrorreplacePY_MAJORr __dict__rsourceospathjoinr targetoutputs)rei_cmdbasenamerrrfinalize_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 rCopying %s to %s) run_commandr'r(isdirr*islinkr remove_treer/existsexecuteunlinkrensure_directorycopytreer&install_namespacesr rrrrun2s   zinstall_egg_info.runcCs|jSr )r+r rrr get_outputs?szinstall_egg_info.get_outputscs fdd}tjj|dS)NcsldD]}||sd||vrdSqjr'jdvr'|dr'tddSj|td|||S)N)z.svn/zCVS//rz SOURCES.txtzSkipping SOURCES.txtr0) startswithr rinfor+appenddebug)srcdstskipr rrskimmerDs  z*install_egg_info.copytree..skimmer)rr&r*)rrErr rr9Bs zinstall_egg_info.copytreeN) __name__ __module__ __qualname____doc__ description user_optionsrr.r;r<r9rrrrr s r) distutilsrrr'r setuptoolsrrsetuptools.archive_utilrr Installerrrrrrs