MINI MINI MANI MO
ó
Fì]c           @   s   d  Z  d Z 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
 e j d	 ƒ Z d
 e f d „  ƒ  YZ d S(   sR   distutils.command.build_scripts
Implements the Distutils 'build_scripts' command.s   $Id$iÿÿÿÿN(   t   ST_MODE(   t   Command(   t   newer(   t   convert_path(   t   logs   ^#!.*python[0-9.]*([ 	].*)?$t
   build_scriptsc           B   sS   e  Z d  Z d d d g Z d g Z d
 „  Z d „  Z d „  Z d
 „  Z d „  Z	 RS(   s(   "build" scripts (copy and fixup #! line)s
   build-dir=t   ds   directory to "build" (copy) tot   forcet   fs1   forcibly build everything (ignore file timestampss   executable=t   es*   specify final destination interpreter pathc         C   s1   d  |  _ d  |  _ d  |  _ d  |  _ d  |  _ d  S(   N(   t   Nonet	   build_dirt   scriptsR   t
   executablet   outfiles(   t   self(    (    s7   /usr/lib64/python2.7/distutils/command/build_scripts.pyt   initialize_options   s
    				c         C   s)   |  j  d d d d ƒ |  j j |  _ d  S(	   Nt   buildR   R   R   R
   (   s
   build_scriptss	   build_dir(   s   forces   force(   s
   executables
   executable(   t   set_undefined_optionst   distributionR   (   R   (    (    s7   /usr/lib64/python2.7/distutils/command/build_scripts.pyt   finalize_options%   s
    	c         C   s   |  j  S(   N(   R   (   R   (    (    s7   /usr/lib64/python2.7/distutils/command/build_scripts.pyt   get_source_files,   s    c         C   s   |  j  s
 d  S|  j ƒ  d  S(   N(   R   t   copy_scripts(   R   (    (    s7   /usr/lib64/python2.7/distutils/command/build_scripts.pyt   run/   s    	c         C   sß  t  d ƒ } |  j |  j ƒ g  } x|  j D]} d } t | ƒ } t j j |  j t j j | ƒ ƒ } | j	 | ƒ |  j
 r¥ t | | ƒ r¥ t j
 d | ƒ q, n  y t | d ƒ } Wn&