File: //usr/lib/python3.5/distutils/command/__pycache__/install_scripts.cpython-35.pyc
Füƒaá ã @ 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 ú7/usr/lib/python3.5/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 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_outputsZdry_runr ÚinfoÚstatr Úchmod)r ÚfileÚmoder r r Úrun) s
zinstall_scripts.runc C s | j j p g S)N)ZdistributionZscripts)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__ZdescriptionZuser_optionsZboolean_optionsr r r$ r% r r r r r r s r ) Ú__doc__r Zdistutils.corer Z distutilsr r r r r r r r Ú<module> s