File: //lib64/python3.9/distutils/command/__pycache__/install_headers.cpython-39.opt-2.pyc
a
    �DOg  �                   @   s    d dl mZ G dd� de�ZdS )�    )�Commandc                   @   sF   e Zd ZdZddgZdgZdd� Zdd� Zd	d
� Zdd� Z	d
d� Z
dS )�install_headerszinstall C/C++ header files)zinstall-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   �9/usr/lib64/python3.9/distutils/command/install_headers.py�initialize_options   s    z"install_headers.initialize_optionsc                 C   s   | � ddd� d S )N�install)r   r   )r   r   )Zset_undefined_optionsr	   r   r   r   �finalize_options   s    �z install_headers.finalize_optionsc                 C   sH   | j j}|sd S | �| j� |D ]"}| �|| j�\}}| j�|� q d S �N)�distribution�headersZmkpathr   Z	copy_filer   �append)r
   r   �header�out�_r   r   r   �run!   s    zinstall_headers.runc                 C   s   | j jp
g S r   )r   r   r	   r   r   r   �
get_inputs+   s    zinstall_headers.get_inputsc                 C   s   | j S r   )r   r	   r   r   r   �get_outputs.   s    zinstall_headers.get_outputsN)�__name__�
__module__�__qualname__�descriptionZuser_optionsZboolean_optionsr
   r   r   r   r   r   r   r   r   r   
   s   �
r   N)Zdistutils.corer   r   r   r   r   r   �<module>   s