3 ª fã@s$dZddlmZGdd„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@sFeZdZdZddgZdgZdd „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 úF/opt/alt/python36/lib64/python3.6/distutils/command/install_headers.pyÚinitialize_optionssz"install_headers.initialize_optionscCs|jdddƒdS)NZinstallrr r)rr )rr)Zset_undefined_options)r r r rÚfinalize_optionssz install_headers.finalize_optionscCsL|jj}|sdS|j|jƒx*|D]"}|j||jƒ\}}|jj|ƒq"WdS)N)Ú distributionÚheadersZmkpathr Z copy_filer Úappend)r rÚheaderÚoutÚ_r r rÚrun!s  zinstall_headers.runcCs |jjp gS)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)rrr ) Ú__name__Ú __module__Ú __qualname__Z descriptionZ user_optionsZboolean_optionsrrrrrr r r rr s rN)Ú__doc__Zdistutils.corerrr r r rÚs