î Ôê[ã@s0dZddlmZGdd„deƒZdS)z•distutils.command.install_headers Implements the Distutils 'install_headers' command, to install C/C++ header files to the Python include directory.é)ÚCommandc@sgeZdZdZddgZdgZdd „Zd d „Zd d „Zdd„Z dd„Z dS)Úinstall_headerszinstall C/C++ header filesú install-dir=Údú$directory to install header files toÚforceÚfú-force installation (overwrite existing files)cCsd|_d|_g|_dS)Nr)Ú install_dirrÚoutfiles)Úself©r ú7/usr/lib/python3.4/distutils/command/install_headers.pyÚinitialize_optionss  z"install_headers.initialize_optionscCs|jdddƒdS)NZinstallrr r)zinstall_headersz install_dir)úforcer)Zset_undefined_options)r r r rÚfinalize_optionss z install_headers.finalize_optionscCsf|jj}|sdS|j|jƒx9|D]1}|j||jƒ\}}|jj|ƒq-WdS)N)Ú distributionÚheadersZmkpathr Z copy_filer Úappend)r rÚheaderÚoutÚ_r r rÚrun!s  zinstall_headers.runcCs|jjpgS)N)rr)r r r rÚ get_inputs+szinstall_headers.get_inputscCs|jS)N)r )r r r rÚ get_outputs.szinstall_headers.get_outputsN)rrr)zforcerr ) Ú__name__Ú __module__Ú __qualname__Z descriptionZ user_optionsZboolean_optionsrrrrrr r r rr s      rN)Ú__doc__Zdistutils.corerrr r r rÚs