î h fá ã @ s\ d Z 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)zudistutils.command.install_scripts Implements the Distutils 'install_scripts' command, for installing Python scripts.é 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 úF/opt/alt/python34/lib64/python3.4/distutils/command/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 Zinstallr r r r )r z build_dir)zinstall_scriptszinstall_dir)úforcer )ú skip_buildr )Zset_undefined_options)r r r r Úfinalize_options! s z install_scripts.finalize_optionsc C s» | j s | j d ƒ n | j | j | j ƒ | _ t j d k r· xq | j ƒ D]` } | j rr t j d | ƒ qP t j | ƒ t d Bd @} t j d | | ƒ t j | | ƒ qP Wn d S)Nr Úposixzchanging mode of %sim iÿ zchanging mode of %s to %o)r Zrun_commandZ copy_treer r ÚoutfilesÚosÚnameÚget_outputsZdry_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 )zforcer r )r Nr )Ú__name__Ú __module__Ú__qualname__ZdescriptionZuser_optionsZboolean_optionsr r r&