File: //opt/alt/python35/lib64/python3.5/distutils/command/__pycache__/build_scripts.cpython-35.opt-2.pyc
���]W  �               @   s�   d  d l  Z  d  d l Z d  d l m Z d  d l m Z d  d l m Z d  d l m	 Z	 d  d l
 m Z m Z d  d l m
 Z
 d  d l Z e j d � Z Gd	 d
 �  d
 e � Z Gd d �  d e e � Z d S)
�    N)�ST_MODE)�	sysconfig)�Command)�newer)�convert_path�	Mixin2to3)�logs   ^#!.*python[0-9.]*([ 	].*)?$c               @   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)�
build_scriptsz("build" scripts (copy and fixup #! line)�
build-dir=�d�directory to "build" (copy) to�force�f�1forcibly build everything (ignore file timestamps�executable=�e�*specify final destination interpreter pathc             C   s1   d  |  _  d  |  _ d  |  _ d  |  _ d  |  _ d  S)N)�	build_dir�scriptsr
   �
executable�outfiles)�self� r   �2/opt/alt/python35/lib64/python3.5/build_scripts.py�initialize_options   s
    				z build_scripts.initialize_optionsc             C   s)   |  j  d d d d � |  j j |  _ d  S)	NZbuildr	   r   r
   r   )r	   r   )r
   r
   )r   r   )Zset_undefined_optionsZdistributionr   )r   r   r   r   �finalize_options%   s
    	zbuild_scripts.finalize_optionsc             C   s   |  j  S)N)r   )r   r   r   r   �get_source_files,   s    zbuild_scripts.get_source_filesc             C   s   |  j  s
 d  S|  j �  d  S)N)r   �copy_scripts)r   r   r   r   �run/   s    	zbuild_scripts.runc          "