B
    =)H[›  ã               @   s\   d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ d dl	Z	G dd„ dej
eƒZdS )é    )ÚlogÚdir_utilN)ÚCommand)Ú
namespaces)Úunpack_archivec               @   sB   e Zd ZdZdZdgZdd„ Zdd„ Zdd„ Zd	d
„ Z	dd„ Z
dS )Úinstall_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=Údzdirectory to install toc             C   s
   d | _ d S )N)Úinstall_dir)Úself© r   úkC:\Users\HIRONO~1\AppData\Local\Temp\pip-install-qz7kpjmn\setuptools\setuptools\command\install_egg_info.pyÚinitialize_options   s    z#install_egg_info.initialize_optionsc             C   sV   |   dd¡ |  d¡}t d d |j|j¡ ¡ d }|j| _tj	 
| j|¡| _g | _d S )NÚinstall_lib)r	   r	   Úegg_infoz	.egg-info)Úset_undefined_optionsÚget_finalized_commandÚpkg_resourcesÚDistributionÚegg_nameZegg_versionr   ÚsourceÚosÚpathÚjoinr	   ÚtargetÚoutputs)r
   Zei_cmdÚbasenamer   r   r   Úfinalize_options   s    
z!install_egg_info.finalize_optionsc             C   sœ   |   d¡ tj | j¡r:tj | j¡s:tj| j| jd� n(tj 	| j¡rb|  
tj| jfd| j ¡ | jstt | j¡ |  
| jdd| j| jf ¡ |  ¡  d S )Nr   )Údry_runz	Removing r   zCopying %s to %s)Úrun_commandr   r   Úisdirr   Úislinkr   Úremove_treer   ÚexistsÚexecuteÚunlinkr   Úensure_directoryÚcopytreer   Zinstall_namespaces)r
   r   r   r   Úrun!   s    
zinstall_egg_info.runc             C   s   | j S )N)r   )r
   r   r   r   Úget_outputs.   s    zinstall_egg_info.get_outputsc                s    ‡ fdd„}t ˆ jˆ j|ƒ d S )Nc                sF   x&dD ]}|   |¡s d| | krd S qW ˆ j |¡ t d| |¡ |S )N)z.svn/zCVS/ú/zCopying %s to %s)Ú
startswithr   Úappendr   Údebug)ÚsrcÚdstÚskip)r
   r   r   Úskimmer3   s    
z*install_egg_info.copytree.<locals>.skimmer)r   r   r   )r
   r0   r   )r
   r   r&   1   s    zinstall_egg_info.copytreeN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdescriptionÚuser_optionsr   r   r'   r(   r&   r   r   r   r   r   
   s   r   )Ú	distutilsr   r   r   Ú
setuptoolsr   r   Zsetuptools.archive_utilr   r   Ú	Installerr   r   r   r   r   Ú<module>   s   