a
    åze  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )Ú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   ú7/usr/lib/python3.9/distutils/command/install_headers.pyÚinitialize_options   s    z"install_headers.initialize_optionsc                 C   s   |   ddd¡ d S )NÚinstall)r   r   )r   r   )Zset_undefined_optionsr	   r   r   r   Úfinalize_options   s    þz install_headers.finalize_optionsc                 C   sH   | j j}|sd S |  | j¡ |D ]"}|  || j¡\}}| j |¡ q 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 r   )r   r   r	   r   r   r   Ú
get_inputs+   s    zinstall_headers.get_inputsc                 C   s   | j S r   )r   r	   r   r   r   Úget_outputs.   s    zinstall_headers.get_outputsN)Ú__name__Ú
__module__Ú__qualname__ÚdescriptionZuser_optionsZboolean_optionsr   r   r   r   r   r   r   r   r   r   
   s   þ
r   N)Zdistutils.corer   r   r   r   r   r   Ú<module>   s   