• File: install_scripts.cpython-36.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python3.6/site-packages/setuptools/command/__pycache__/install_scripts.cpython-36.opt-1.pyc
  • Date Modified: 10/18/2026 11:59 PM
  • File size: 2.15 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
3

l]j	@sRddlmZddljjZddlZddlZddlm	Z	m
Z
mZGdddejZdS))logN)DistributionPathMetadataensure_directoryc@s*eZdZdZddZddZd
ddZd	S)install_scriptsz;Do normal script install, plus any egg_info wrapper scriptscCstjj|d|_dS)NF)origrinitialize_optionsno_ep)selfr%/usr/lib/python3.6/install_scripts.pyrsz"install_scripts.initialize_optionscCsddljj}|jd|jjr,tjj|ng|_	|j
r<dS|jd}t|j
t|j
|j|j|j}|jd}t|dd}|jd}t|dd}|j}|rd}|j}|tjkr|g}|j}|jjj|}	x"|j||	jD]}
|j|
qWdS)	Nregg_infoZ
build_scripts
executableZ
bdist_wininstZ_is_runningFz
python.exe)setuptools.command.easy_installcommandZeasy_installZrun_commandZdistributionscriptsrrrunoutfilesr	Zget_finalized_commandrZegg_baserr
Zegg_nameZegg_versiongetattrZScriptWriterZWindowsScriptWritersysrZbestZcommand_spec_classZ
from_paramZget_argsZ	as_headerwrite_script)r
ZeiZei_cmdZdistZbs_cmdZ
exec_paramZbw_cmdZ
is_wininstwritercmdargsrrrrs2




zinstall_scripts.runtc
Gsddlm}m}tjd||jtjj|j|}|j	j
||}|js~t|t
|d|}	|	j||	j||d|dS)z1Write an executable file to the scripts directoryr)chmod
current_umaskzInstalling %s script to %swiN)rrrrinfoZinstall_dirospathjoinrappendZdry_runropenwriteclose)
r
Zscript_namecontentsmodeZignoredrrtargetmaskfrrrr3s
zinstall_scripts.write_scriptN)r)__name__
__module____qualname____doc__rrrrrrrr	s#r)Z	distutilsrZ!distutils.command.install_scriptsrrrrrZ
pkg_resourcesrrrrrrr<module>s