³ò
Ÿ›\Kc           @   sg   d  Z  d Z d d k Z d d k Z d d k l Z d d k l Z d „  Z d e f d „  ƒ  YZ	 d S(	   sB   distutils.command.build

Implements the Distutils 'build' command.s1   $Id: build.py 37828 2004-11-10 22:23:15Z loewis $iÿÿÿÿN(   t   Command(   t   get_platformc          C   s   d d k  l }  |  ƒ  d  S(   Niÿÿÿÿ(   t   show_compilers(   t   distutils.ccompilerR   (   R   (    (    s-   /usr/lib/python2.5/distutils/command/build.pyR      s    t   buildc           B   sÉ   e  Z d  Z d) d+ d, d d* d	 d
 f d- d. d/ d0 d1 d2 g
 Z d d g Z d d* d e f g Z d „  Z d „  Z	 d  „  Z
 d! „  Z d" „  Z d# „  Z d$ „  Z d% e f d& e f d' e f d( e f g Z RS(3   s"   build everything needed to installs   build-base=t   bs    base directory for build librarys   build-purelib=s2   build directory for platform-neutral distributionss   build-platlib=s3   build directory for platform-specific distributionss
   build-lib=s9   build directory for all distribution (defaults to either s   build-purelib or build-platlibs   build-scripts=s   build directory for scriptss   build-temp=t   ts   temporary build directorys	   compiler=t   cs   specify the compiler typet   debugt   gs;   compile extensions and libraries with debugging informationt   forcet   fs2   forcibly build everything (ignore file timestamps)s   executable=t   es5   specify final destination interpreter path (build.py)s   help-compilers   list available compilersc         C   s^   d |  _  d  |  _ d  |  _ d  |  _ d  |  _ d  |  _ d  |  _ d  |  _ d |  _	 d  |  _
 d  S(   NR   i    (   t
   build_baset   Nonet   build_purelibt   build_platlibt	   build_libt
   build_tempt   build_scriptst   compilerR   R
   t
   executable(   t   self(    (    s-   /usr/lib/python2.5/distutils/command/build.pyt   initialize_options6   s    									c         C   s  d t  ƒ  t i d d !f } t i o d p d } |  i d  j o# t i i |  i	 d | ƒ |  _ n |  i
 d  j o' t i i |  i	 d | | ƒ |  _
 n |  i d  j o- |  i i o |  i
 |  _ qÛ |  i |  _ n |  i d  j o' t i i |  i	 d | | ƒ |  _ n |  i d  j o- t i i |  i	 d t i d d !ƒ |  _ n |  i d  j o t i i t i ƒ |  _ n d  S(	   Ns   .%s-%si    i   t   _dt    t   libt   temps   scripts-(   R   t   syst   versiont   pydebugR   R   t   ost   patht   joinR   R   R   t   distributiont   ext_modulesR   R   R   t   normpath(   R   t   plat_specifiert	   debug_ext(    (    s-   /usr/lib/python2.5/distutils/command/build.pyt   finalize_optionsD   s&    #c         C   s(   x! |  i  ƒ  D] } |  i | ƒ q Wd  S(   N(   t   get_sub_commandst   run_command(   R   t   cmd_name(    (    s-   /usr/lib/python2.5/distutils/command/build.pyt   runi   s     c         C   s   |  i  i ƒ  S(   N(   R"   t   has_pure_modules(   R   (    (    s-   /usr/lib/python2.5/distutils/command/build.pyR,   v   s    c         C   s   |  i  i ƒ  S(   N(   R"   t   has_c_libraries(   R   (    (    s-   /usr/lib/python2.5/distutils/command/build.pyR-   y   s    c         C   s   |  i  i ƒ  S(   N(   R"   t   has_ext_modules(   R   (    (    s-   /usr/lib/python2.5/distutils/command/build.pyR.   |   s    c         C   s   |  i  i ƒ  S(   N(   R"   t   has_scripts(   R   (    (    s-   /usr/lib/python2.5/distutils/command/build.pyR/      s    t   build_pyt
   build_clibt	   build_extR   (   s   build-base=R   s    base directory for build libraryN(   s   build-purelib=Ns2   build directory for platform-neutral distributions(   s   build-platlib=Ns3   build directory for platform-specific distributions(   s   build-scripts=Ns   build directory for scripts(   s   build-temp=R   s   temporary build directory(   s	   compiler=R   s   specify the compiler type(   s   debugR	   s;   compile extensions and libraries with debugging information(   s   forceR   s2   forcibly build everything (ignore file timestamps)(   s   executable=R   s5   specify final destination interpreter path (build.py)(   t   __name__t
   __module__t   descriptionR   t   user_optionst   boolean_optionsR   t   help_optionsR   R'   R+   R,   R-   R.   R/   t   sub_commands(    (    (    s-   /usr/lib/python2.5/distutils/command/build.pyR      sH            			%								(
   t   __doc__t   __revision__R   R   t   distutils.coreR    t   distutils.utilR   R   R   (    (    (    s-   /usr/lib/python2.5/distutils/command/build.pys   <module>   s   	