3
\ @ s8 d dl Z d dlmZ d dlmZmZ G dd deZdS ) N)Command)change_rootconvert_pathc @ sH e Zd ZdZdddgZdgZdd Zd
d Zdd Zdd Z dd Z
dS )install_datazinstall data filesinstall-dir=dIbase directory for installing data files (default: installation base dir)root=N<install everything relative to this alternate root directoryforcef-force installation (overwrite existing files)c C s, d | _ g | _d | _d| _| jj| _d| _d S )Nr )install_diroutfilesrootr Zdistribution
data_fileswarn_dir)self r 6/usr/lib64/python3.6/distutils/command/install_data.pyinitialize_options s
zinstall_data.initialize_optionsc C s | j dddd d S ) NZinstallr r r r )r r )r r )r r )Zset_undefined_options)r r r r finalize_options# s zinstall_data.finalize_optionsc C s | j | j x| jD ]}t|trdt|}| jrD| jd|| jf | j|| j\}}| j j
| qt|d }tjj
|stjj| j|}n| jrt| j|}| j | |d g kr| j j
| qx4|d D ](}t|}| j||\}}| j j
| qW qW d S )NzMsetup script did not provide a directory for '%s' -- installing right in '%s'r r )Zmkpathr r
isinstancestrr r warnZ copy_filer appendospathisabsjoinr r )r r out_dirdatar 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 )N)r )r r r r get_outputsN s zinstall_data.get_outputs)r r r )r Nr
)r r r
)__name__
__module____qualname__ZdescriptionZuser_optionsZboolean_optionsr r r% r&