B
    ãUvgÀ  ã               @   s8   d Z ddlZddlmZ ddlmZ G dd„ deƒZdS )zD
Create a dist_info directory
As defined in the wheel specification
é    N)ÚCommand)Úlogc               @   s.   e Zd ZdZdgZdd„ Zdd„ Zdd„ Zd	S )
Ú	dist_infozcreate a .dist-info directory)z	egg-base=ÚezLdirectory containing .egg-info directories (default: top of the source tree)c             C   s
   d | _ d S )N)Úegg_base)Úself© r   úD/tmp/pip-install-r_9ig3yj/setuptools/setuptools/command/dist_info.pyÚinitialize_options   s    zdist_info.initialize_optionsc             C   s   d S )Nr   )r   r   r   r	   Úfinalize_options   s    zdist_info.finalize_optionsc             C   sn   |   d¡}| j|_| ¡  | ¡  |jd tdƒ … d }t d t	j
 |¡¡¡ |   d¡}| |j|¡ d S )NÚegg_infoz	.egg-infoz
.dist-infozcreating '{}'Úbdist_wheel)Úget_finalized_commandr   r   Úrunr   Úlenr   ÚinfoÚformatÚosÚpathÚabspathZegg2dist)r   r   Zdist_info_dirr   r   r   r	   r      s    

zdist_info.runN)Ú__name__Ú
__module__Ú__qualname__ÚdescriptionÚuser_optionsr
   r   r   r   r   r   r	   r      s
   r   )Ú__doc__r   Údistutils.corer   Ú	distutilsr   r   r   r   r   r	   Ú<module>   s   