AlkantarClanX12
Current Path : /opt/alt/python35/lib64/python3.5/distutils/command/__pycache__/ |
Current File : //opt/alt/python35/lib64/python3.5/distutils/command/__pycache__/install_data.cpython-35.opt-1.pyc |
��Yf � @ sR d Z d d l Z d d l m Z d d l m Z m Z Gd d � d e � Z d S)z�distutils.command.install_data Implements the Distutils 'install_data' command, for installing platform-independent data files.� N)�Command)�change_root�convert_pathc @ sj e Z d Z d Z d d d g Z d g Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�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 | _ | j j | _ d | _ d S)Nr � )�install_dir�outfiles�rootr Zdistribution� data_files�warn_dir)�self� r �C/opt/alt/python35/lib64/python3.5/distutils/command/install_data.py�initialize_options s zinstall_data.initialize_optionsc C s | j d d d d � 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 se | j | j � xN| j D]C} t | t � r� t | � } | j r^ | j d | | j f � | j | | j � \ } } | j j | � q t | d � } t j j | � s� t j j | j | � } n | j r� t | j | � } | j | � | d g k r| j j | � q xF | d D]: } t | � } | j | | � \ } } | j j | � qWq Wd 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 p g 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&