ó
è¾bc           @   s6   d  Z  d Z d d l m Z d e f d „  ƒ  YZ d S(   s•   distutils.command.install_headers

Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory.s   $Id$iÿÿÿÿ(   t   Commandt   install_headersc           B   sP   e  Z d  Z d d g Z d g Z d „  Z d „  Z d	 „  Z d
 „  Z d „  Z	 RS(   s   install C/C++ header filess   install-dir=t   ds$   directory to install header files tot   forcet   fs-   force installation (overwrite existing files)c         C   s   d  |  _ d |  _ g  |  _ d  S(   Ni    (   t   Nonet   install_dirR   t   outfiles(   t   self(    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyt   initialize_options   s    		c         C   s   |  j  d d d ƒ d  S(   Nt   installR   R   R   (   R   R   (   R   R   (   t   set_undefined_options(   R   (    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyt   finalize_options   s    	c         C   sf   |  j  j } | s d  S|  j |  j ƒ x9 | D]1 } |  j | |  j ƒ \ } } |  j j | ƒ q- Wd  S(   N(   t   distributiont   headerst   mkpathR   t	   copy_fileR   t   append(   R   R   t   headert   outt   _(    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyt   run#   s    c         C   s   |  j  j p g  S(   N(   R   R   (   R   (    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyt
   get_inputs-   s    c         C   s   |  j  S(   N(   R   (   R   (    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyt   get_outputs0   s    (   s   install-dir=R   s$   directory to install header files to(   R   R   s-   force installation (overwrite existing files)(
   t   __name__t
   __module__t   descriptiont   user_optionst   boolean_optionsR	   R   R   R   R   (    (    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyR      s     					
	N(   t   __doc__t   __revision__t   distutils.coreR    R   (    (    (    s7   /usr/lib/python2.7/distutils/command/install_headers.pyt   <module>   s   