
    ZQd                     2    d Z ddlmZ  G d de          ZdS )zdistutils.command.install_headers

Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory.    )Commandc                   >    e Zd ZdZddgZdgZd Zd Zd Zd Z	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                 0    d | _         d| _        g | _        d S )Nr   )install_dirr   outfilesselfs    8/usr/lib/python3.11/distutils/command/install_headers.pyinitialize_optionsz"install_headers.initialize_options   s    
    c                 4    |                      ddd           d S )Ninstall)r   r
   )r   r   )set_undefined_optionsr   s    r   finalize_optionsz install_headers.finalize_options   s,    ""9#E#5	7 	7 	7 	7 	7r   c                     | j         j        }|sd S |                     | j                   |D ]:}|                     || j                  \  }}| j                            |           ;d S N)distributionheadersmkpathr
   	copy_filer   append)r   r   headerout_s        r   runzinstall_headers.run!   s{    #+ 	FD$%%% 	& 	&F~~fd.>??HS!M  %%%%	& 	&r   c                     | j         j        pg S r   )r   r   r   s    r   
get_inputszinstall_headers.get_inputs+   s     (.B.r   c                     | j         S r   )r   r   s    r   get_outputszinstall_headers.get_outputs.   s
    }r   N)__name__
__module____qualname__descriptionuser_optionsboolean_optionsr   r   r   r!   r#    r   r   r   r   
   s        .K=FL iO  
7 7 7& & &/ / /    r   r   N)__doc__distutils.corer   r   r*   r   r   <module>r-      sW   * *
 # " " " " "% % % % %g % % % % %r   