| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/distutils/command/__pycache__/ |
Upload File : |
a
s d � @ s8 d dl Z d dlmZ d dlmZmZ G dd� de�ZdS )� N)�Command)�change_root�convert_pathc @ sF e Zd ZdZg d�ZdgZdd� Zdd� Zdd � Zd
d� Z dd
� Z
dS )�install_datazinstall data files))zinstall-dir=�dzIbase directory for installing data files (default: installation base dir))zroot=Nz<install everything relative to this alternate root directory)�force�fz-force installation (overwrite existing files)r c C s, d | _ g | _d | _d| _| jj| _d| _d S )Nr � )�install_dir�outfiles�rootr Zdistribution�
data_files�warn_dir��self� r �4/usr/lib/python3.9/distutils/command/install_data.py�initialize_options s
zinstall_data.initialize_optionsc C s | � dddd� d S )N�install)r r
)r r )r r )Zset_undefined_optionsr r r r �finalize_options# s
�zinstall_data.finalize_optionsc C s� | � | j� | jD ]�}t|t�rbt|�}| jrB| �d|| jf � | �|| j�\}}| j �
|� qt|d �}tj�
|�s�tj�| j|�}n| jr�t| j|�}| � |� |d g kr�| j �
|� q|d D ](}t|�}| �||�\}}| j �
|� q�qd S )NzMsetup script did not provide a directory for '%s' -- installing right in '%s'r r )Zmkpathr
r
�
isinstance�strr r �warnZ copy_filer �append�os�path�isabs�joinr r )r r �out�_�dir�datar r r �run* s,
�
zinstall_data.runc C s
| j pg S �N)r
r r r r �
get_inputsK s zinstall_data.get_inputsc C s | j S r# )r r r r r �get_outputsN s zinstall_data.get_outputsN)�__name__�
__module__�__qualname__�descriptionZuser_optionsZboolean_optionsr r r"