Ņō
xĮGc        
   @   s   d  Z  d Z d d k Z d d k l Z d d k l Z d d k l Z l	 Z	 d d k
 Td d k l Z d d	 k l Z d
 e f d     YZ d S(   s·   distutils.command.bdist_dumb

Implements the Distutils 'bdist_dumb' command (create a "dumb" built
distribution -- i.e., just an archive to be unpacked under $prefix or
$exec_prefix).s@   $Id: bdist_dumb.py 61000 2008-02-23 17:40:11Z christian.heimes $iĸĸĸĸN(   t   Command(   t   get_platform(   t   remove_treet   ensure_relative(   t   *(   t   get_python_version(   t   logt
   bdist_dumbc        	   B   s   e  Z d  Z d d d d e   f d d
 d d d f d d  d! g Z d
 d d g Z h d d 6d d 6d d 6Z d   Z d   Z	 d   Z
 RS("   s"   create a "dumb" built distributions
   bdist-dir=t   ds1   temporary directory for creating the distributions
   plat-name=t   ps;   platform name to embed in generated filenames (default: %s)s   format=t   fs0   archive format to create (tar, ztar, gztar, zip)s	   keep-tempt   ks/   keep the pseudo-installation tree around after s!   creating the distribution archives	   dist-dir=s-   directory to put final built distributions ins
   skip-builds2   skip rebuilding everything (for testing/debugging)t   relatives6   build the archive using relative paths(default: false)t   gztart   posixt   zipt   ntt   os2c         C   sC   d  |  _ d  |  _ d  |  _ d |  _ d  |  _ d |  _ d |  _ d  S(   Ni    (   t   Nonet	   bdist_dirt	   plat_namet   formatt	   keep_tempt   dist_dirt
   skip_buildR   (   t   self(    (    s>   P:\graphics\Tools\Python26\lib\distutils\command\bdist_dumb.pyt   initialize_options1   s    						c         C   sŠ   |  i  d  j o. |  i d  i } t i i | d  |  _  n |  i d  j oE y |  i t i	 |  _ Wq t
 j
 o t d d t i	  q Xn |  i d d d  d  S(	   Nt   bdistt   dumbs2   don't know how to create dumb built distributions s   on platform %sR   R   (   s   dist_dirs   dist_dir(   s	   plat_names	   plat_name(   R   R   t   get_finalized_commandt
   bdist_baset   ost   patht   joinR   t   default_formatt   namet   KeyErrort   DistutilsPlatformErrort   set_undefined_options(   R   R   (    (    s>   P:\graphics\Tools\Python26\lib\distutils\command\bdist_dumb.pyt   finalize_options=   s    	c         C   sŌ  |  i  p |  i d  n |  i d d d } |  i | _ |  i  | _  d | _ t i d |  i  |  i d  d |  i i	   |  i
 f } t i d j o | i d	 d
  } n t i i |  i |  } |  i p |  i } nn |  i i   o< | i | i j o) t d t | i  t | i  f  n" t i i |  i t | i   } |  i | |  i d | } |  i i   o t   } n d } |  i i i d | | f  |  i p t |  i d |  i n d  S(   Nt   buildt   installt   reinit_subcommandsi   i    s   installing to %ss   %s.%sR   t   :t   -sS   can't make a dumb built distribution where base and platbase are different (%s, %s)t   root_dirt   anyR   t   dry_run(    R   t   run_commandt   reinitialize_commandR   t   roott   warn_dirR   t   infot   distributiont   get_fullnameR   R   R#   t   replaceR    R!   R   R   t   has_ext_modulest   install_baset   install_platbaseR%   t   reprR   t   make_archiveR   R   t
   dist_filest   appendR   R   R/   (   R   R)   t   archive_basenamet   pseudoinstall_roott   archive_roott   filenamet	   pyversion(    (    s>   P:\graphics\Tools\Python26\lib\distutils\command\bdist_dumb.pyt   runR   s@    
	
	

(   s
   bdist-dir=R   s1   temporary directory for creating the distribution(   s   format=R
   s0   archive format to create (tar, ztar, gztar, zip)(   s	   dist-dir=R   s-   directory to put final built distributions inN(   s
   skip-buildNs2   skip rebuilding everything (for testing/debugging)(   s   relativeNs6   build the archive using relative paths(default: false)(   t   __name__t
   __module__t   descriptionR   R   t   user_optionst   boolean_optionsR"   R   R'   RD   (    (    (    s>   P:\graphics\Tools\Python26\lib\distutils\command\bdist_dumb.pyR      s0    
    	

		(   t   __doc__t   __revision__R   t   distutils.coreR    t   distutils.utilR   t   distutils.dir_utilR   R   t   distutils.errorst   distutils.sysconfigR   t	   distutilsR   R   (    (    (    s>   P:\graphics\Tools\Python26\lib\distutils\command\bdist_dumb.pyt   <module>   s   
