관리-도구
편집 파일: install_data.cpython-310.opt-2.pyc
o 6��f � @ s: 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 �E/opt/alt/python310/lib64/python3.10/distutils/command/install_data.py�initialize_options s zinstall_data.initialize_optionsc C s | � dddd� d S )NZinstall)r r )r r )r r )Zset_undefined_optionsr r r r �finalize_options# s �zinstall_data.finalize_optionsc C s� | � | j� | jD ]q}t|t�r1t|�}| jr!| �d|| jf � | �|| j�\}}| j � |� q t|d �}tj� |�sFtj�| j|�}n | jrOt| j|�}| � |� |d g kra| j � |� q |d D ]}t|�}| �||�\}}| j � |� qeq d 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* s0 � ��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"