File "build_scripts.cpython-38.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python38/lib64/python3.8/distutils/command/__pycache__/build_scripts.cpython-38.pyc
File size: 4.24 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

U

ifX@sdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZddlZed	ZGd
ddeZGdd
d
ee
ZdS)zRdistutils.command.build_scripts

Implements the Distutils 'build_scripts' command.N)ST_MODE)	sysconfig)Command)newer)convert_path	Mixin2to3)logs^#!.*python[0-9.]*([ 	].*)?$c@sHeZdZdZdddgZdgZddZdd	Zd
dZdd
Z	ddZ
dS)
build_scriptsz("build" scripts (copy and fixup #! line))z
build-dir=dzdirectory to "build" (copy) to)forcefz1forcibly build everything (ignore file timestamps)zexecutable=ez*specify final destination interpreter pathrcCs"d|_d|_d|_d|_d|_dSN)	build_dirscriptsr
executableoutfilesselfrD/opt/alt/python38/lib64/python3.8/distutils/command/build_scripts.pyinitialize_optionss
z build_scripts.initialize_optionscCs|dddd|jj|_dS)NZbuild)r	r)rr)rr)Zset_undefined_optionsZdistributionrrrrrfinalize_options%szbuild_scripts.finalize_optionscCs|jSr)rrrrrget_source_files,szbuild_scripts.get_source_filescCs|js
dS|dSr)rcopy_scriptsrrrrrun/szbuild_scripts.runc
Cs||jg}g}|jD]}d}t|}tj|jtj|}|||j	slt
||sltd|qzt
|d}Wn tk
r|jsd}YnXXt|j\}}|d|}	|	s|d|qt|	}
|
rd}|
dpd	}|rtd
||j|||jstjs*|j}n(tjtddtd
tdf}t|}d||d}
z|
dWn$tk
rt d!|
YnXz|
|Wn&tk
rt d!|
|YnXt
|d}|"|
|#|$W5QRX|r8|%q|r"|%|||&||qtj'dkr|D]`}|jrdtd|nDt(|t)d@}|dBd@}||krJtd|||t*||qJ||fS)a"Copy each script listed in 'self.scripts'; if it's marked as a
        Python script in the Unix way (first line matches 'first_line_re',
        ie. starts with "\#!" and contains "python"), then adjust the first
        line to refer to the current Python interpreter as we copy.
        Fznot copying %s (up-to-date)rbNrz%s is an empty file (skipping)Tzcopying and adjusting %s -> %sZBINDIRz
python%s%sZVERSIONZEXEs#!
zutf-8z.The shebang ({!r}) is not decodable from utf-8zAThe shebang ({!r}) is not decodable from the script encoding ({})wbposixzchanging mode of %siimz!changing mode of %s from %o to %o)+ZmkpathrrrospathjoinbasenameappendrrrdebugopenOSErrordry_runtokenizedetect_encodingreadlineseekwarn
first_line_rematchgroupinforZpython_buildrZget_config_varfsencodedecodeUnicodeDecodeError
ValueErrorformatwrite
writelines	readlinescloseZ	copy_filenamestatrchmod)rr
updated_filesZscriptZadjustZoutfilerencodinglinesZ
first_liner1Zpost_interprZshebangZoutffileZoldmodeZnewmoderrrr5s












zbuild_scripts.copy_scriptsN)__name__
__module____qualname__ZdescriptionZuser_optionsZboolean_optionsrrrrrrrrrr	sr	c@seZdZddZdS)build_scripts_2to3cCs&t|\}}|js||||fSr)r	rr*Zrun_2to3)rrr@rrrrs
zbuild_scripts_2to3.copy_scriptsN)rDrErFrrrrrrGsrG)__doc__r"rer>rZ	distutilsrZdistutils.corerZdistutils.dep_utilrZdistutils.utilrrrr+compiler0r	rGrrrr<module>s