o ?Og@sDdZddlZddlmZddlmZddlmZGdddeZdS)zudistutils.command.install_scripts Implements the Distutils 'install_scripts' command, for installing Python scripts.N)Command)log)ST_MODEc@sHeZdZdZgdZddgZddZddZd d Zd d Z d dZ dS)install_scriptsz%install scripts (Python or otherwise)))z install-dir=dzdirectory to install scripts to)z build-dir=bz'build directory (where to install from))forcefz-force installation (overwrite existing files)) skip-buildNzskip the build stepsrr cCsd|_d|_d|_d|_dS)Nr) install_dirr build_dir skip_buildselfrH/opt/alt/python310/lib64/python3.10/distutils/command/install_scripts.pyinitialize_optionss z"install_scripts.initialize_optionscCs |dd|dddddS)NZbuild) build_scriptsr Zinstall)rr )rr)r r )Zset_undefined_optionsrrrrfinalize_options!s z install_scripts.finalize_optionscCs|js|d||j|j|_tjdkr?|D]&}|j r&t d|qt |t dBd@}t d||t||qdSdS)Nrposixzchanging mode of %simizchanging mode of %s to %o)r Z run_commandZ copy_treer r outfilesosname get_outputsZdry_runrinfostatrchmod)rfilemoderrrrun)s   zinstall_scripts.runcCs |jjpgSN)Z distributionZscriptsrrrr get_inputs8s zinstall_scripts.get_inputscCs |jpgSr )rrrrrr;s zinstall_scripts.get_outputsN) __name__ __module__ __qualname__ descriptionZ user_optionsZboolean_optionsrrrr!rrrrrrs r) __doc__rZdistutils.corerZ distutilsrrrrrrrrs