B M��j�@s$dZddlmZGdd�de�ZdS)z�distutils.command.install_headers Implements the Distutils 'install_headers' command, to install C/C++ header files to the Python include directory.�)�Commandc@sFeZdZdZddgZdgZdd�Zdd�Zd d �Zd d �Z d d�Z dS)�install_headerszinstall C/C++ header files)z install-dir=�dz$directory to install header files to)�force�fz-force installation (overwrite existing files)rcCsd|_d|_g|_dS)Nr)� install_dirr�outfiles)�self�r �F/opt/alt/python37/lib64/python3.7/distutils/command/install_headers.py�initialize_optionssz"install_headers.initialize_optionscCs|�ddd�dS)NZinstall)rr)rr)Zset_undefined_options)r r r r �finalize_optionssz install_headers.finalize_optionscCsL|jj}|sdS|�|j�x*|D]"}|�||j�\}}|j�|�q"WdS)N)� distribution�headersZmkpathrZ copy_filer�append)r r�header�out�_r r r �run!s  zinstall_headers.runcCs |jjp gS)N)rr)r r r r � get_inputs+szinstall_headers.get_inputscCs|jS)N)r)r r r r � get_outputs.szinstall_headers.get_outputsN) �__name__� __module__� __qualname__Z descriptionZ user_optionsZboolean_optionsr r rrrr r r r r s rN)�__doc__Zdistutils.corerrr r r r �<module>s