B
    È S]  ã               @   s$   d Z ddlmZ G dd„ deƒZdS )z•distutils.command.install_headers

Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory.é    )ÚCommandc               @   sF   e Zd ZdZddgZdgZdd„ Zdd„ Zd	d
„ Zdd„ Z	dd„ Z
dS )Úinstall_headerszinstall C/C++ header files)zinstall-dir=Údz$directory to install header files to)ÚforceÚfz-force installation (overwrite existing files)r   c             C   s   d | _ d| _g | _d S )Nr   )Úinstall_dirr   Úoutfiles)Úself© r
   ú2lib/python3.7/distutils/command/install_headers.pyÚinitialize_options   s    z"install_headers.initialize_optionsc             C   s   |   ddd¡ d S )NZinstall)r   r   )r   r   )Zset_undefined_options)r	   r
   r
   r   Úfinalize_options   s    z install_headers.finalize_optionsc             C   sL   | j j}|sd S |  | j¡ x*|D ]"}|  || j¡\}}| j |¡ q"W d S )N)ÚdistributionÚheadersZmkpathr   Z	copy_filer   Úappend)r	   r   ÚheaderÚoutÚ_r
   r
   r   Úrun!   s    
zinstall_headers.runc             C   s   | j jp
g S )N)r   r   )r	   r
   r
   r   Ú
get_inputs+   s    zinstall_headers.get_inputsc             C   s   | j S )N)r   )r	   r
   r
   r   Úget_outputs.   s    zinstall_headers.get_outputsN)Ú__name__Ú
__module__Ú__qualname__ZdescriptionZuser_optionsZboolean_optionsr   r   r   r   r   r
   r
   r
   r   r   
   s   
r   N)Ú__doc__Zdistutils.corer   r   r
   r
   r
   r   Ú<module>   s   