MINI MINI MANI MO
3
\ ã @ s8 d dl Z d dlmZ d dlmZmZ G dd„ deƒZdS )é N)ÚCommand)Úchange_rootÚconvert_pathc @ sH e Zd ZdZdddgZdgZdd„ Zd
d„ Zdd„ Zdd„ Z dd„ Z
dS )Úinstall_datazinstall data filesúinstall-dir=ÚdúIbase directory for installing data files (default: installation base dir)úroot=Nú<install everything relative to this alternate root directoryÚforceÚfú-force installation (overwrite existing files)c C s, d | _ g | _d | _d| _| jj| _d| _d S )Nr é )Úinstall_dirÚoutfilesÚrootr ZdistributionÚ
data_filesÚwarn_dir)Úself© r ú6/usr/lib64/python3.6/distutils/command/install_data.pyÚinitialize_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|tƒrdt|ƒ}| jrD| jd|| jf ƒ | j|| jƒ\}}| j j
|ƒ qt|d ƒ}tjj
|ƒsŽtjj| j|ƒ}n| jr t| j|ƒ}| j |ƒ |d g krÄ| j j
|ƒ qx4|d D ](}t|ƒ}| j||ƒ\}}| j j
|ƒ qÎW qW 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* 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&