й¼]á ã @ sV d d l Z d d l m Z d d l m Z d d l m Z Gd d „ d e ƒ Z d S)é N)ÚCommand)Úlog)ÚST_MODEc @ sp e Z d Z d Z d d d d g Z d d g Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d S)Úinstall_scriptsz%install scripts (Python or otherwise)úinstall-dir=Údúdirectory to install scripts toú build-dir=Úbú'build directory (where to install from)ÚforceÚfú-force installation (overwrite existing files)ú skip-buildNúskip the build stepsc C s( d | _ d | _ d | _ d | _ d S)Nr )Úinstall_dirr Ú build_dirÚ skip_build)Úself© r ú4/opt/alt/python35/lib64/python3.5/install_scripts.pyÚinitialize_options s z"install_scripts.initialize_optionsc C s* | j d d ƒ | j d d d d ƒ d S) NZbuildÚ build_scriptsr Úinstallr r r r )r r )r r )r r )r r )Zset_undefined_options)r r r r Úfinalize_options! s z install_scripts.finalize_optionsc C sµ | j s | j d ƒ | j | j | j ƒ | _ t j d k r± xn | j ƒ D]` } | j ro t j d | ƒ qM t j | ƒ t d Bd @} t j d | | ƒ t j | | ƒ qM Wd S)Nr Úposixzchanging mode of %sim iÿ zchanging mode of %s to %o)r Zrun_commandZ copy_treer r ÚoutfilesÚosÚnameÚget_outputsÚdry_runr ÚinfoÚstatr Úchmod)r ÚfileÚmoder r r Úrun) s zinstall_scripts.runc C s | j j p g S)N)ZdistributionÚscripts)r r r r Ú get_inputs8 s zinstall_scripts.get_inputsc C s | j p g S)N)r )r r r r r ; s zinstall_scripts.get_outputs)r r r )r r r )r r r )r Nr )Ú__name__Ú __module__Ú__qualname__ÚdescriptionZuser_optionsZboolean_optionsr r r&