Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/command/install_scripts.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sbdZdZddlZddlmZddlmZddlmZdefd��YZ	dS(	sudistutils.command.install_scripts

Implements the Distutils 'install_scripts' command, for installing
Python scripts.s$Id$i�N(tCommand(tlog(tST_MODEtinstall_scriptscBsYeZdZddddgZdd
gZd�Zd
�Zd�Zd�Z	d�Z
RS(s%install scripts (Python or otherwise)sinstall-dir=tdsdirectory to install scripts tos
build-dir=tbs'build directory (where to install from)tforcetfs-force installation (overwrite existing files)s
skip-buildsskip the build stepscCs(d|_d|_d|_d|_dS(Ni(tNonetinstall_dirRt	build_dirt
skip_build(tself((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pytinitialize_optionss			cCs*|jdd	�|jdd
dd�dS(
Ntbuildt
build_scriptsR
tinstallRR	RR(s
build_scriptss	build_dir(sinstall_scriptssinstall_dir(sforcesforce(s
skip_builds
skip_build(tset_undefined_options(R((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pytfinalize_options#s
	cCs�|js|jd�n|j|j|j�|_tjdkr�xq|j�D]`}|j	rrt
jd|�qPtj|�t
dBd@}t
jd||�tj||�qPWndS(NRtposixschanging mode of %simi�schanging mode of %s to %o(Rtrun_commandt	copy_treeR
R	toutfilestostnametget_outputstdry_runRtinfotstatRtchmod(Rtfiletmode((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pytrun+s		cCs|jjpgS(N(tdistributiontscripts(R((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pyt
get_inputs:scCs
|jpgS(N(R(R((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pyR=s(sinstall-dir=Rsdirectory to install scripts to(s
build-dir=Rs'build directory (where to install from)(sforceRs-force installation (overwrite existing files)N(s
skip-buildNsskip the build steps(t__name__t
__module__tdescriptionRtuser_optionstboolean_optionsR
RR R#R(((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pyRs					(
t__doc__t__revision__Rtdistutils.coreRt	distutilsRRRR(((sT/usr/jas/src/cmd/cpython/dist/sys/lib/python2.7/distutils/command/install_scripts.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.