File "install.cpython-37.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python37/lib64/python3.7/distutils/command/__pycache__/install.cpython-37.pyc
File size: 13.22 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

B

 fuh@sdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZmZmZdd
lmZddlmZddlmZdd
lmZdZddddddZddddddddddddedZerdddddded <ddd!d"dded#<dZGd$d%d%eZdS)&zFdistutils.command.install

Implements the Distutils 'install' command.N)log)Command)DEBUG)get_config_vars)DistutilsPlatformError)
write_file)convert_path
subst_varschange_root)get_platform)DistutilsOptionError)	USER_BASE)	USER_SITETz$base/Lib/site-packagesz$base/Include/$dist_namez
$base/Scriptsz$base)purelibplatlibheadersscriptsdataz/$base/lib/python$py_version_short/site-packagesz5$platbase/lib64/python$py_version_short/site-packagesz9$base/include/python$py_version_short$abiflags/$dist_namez	$base/binz$base/lib/pythonz$base/lib64/pythonz$base/include/python/$dist_name)unix_prefix	unix_homentz	$usersitez4$userbase/Python$py_version_nodot/Include/$dist_namez)$userbase/Python$py_version_nodot/Scriptsz	$userbaseZnt_userz=$userbase/include/python$py_version_short$abiflags/$dist_namez
$userbase/bin	unix_userc@s:eZdZdZdddddddd	d
ddd
ddddddgZdddgZer`edddefedddiZ	ddZ
ddZdd Zd!d"Z
d#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-d.Zd/d0Zd1d2Zd3d4Zd5d6Zd7d8Zd9d:Zd;d<Zd=d>Zd?d@ZdAdBZdCdDZdEefdFefdGefdHefdIdJdKfgZdS)Linstallz'install everything from build directory)zprefix=Nzinstallation prefix)zexec-prefix=Nz.(Unix only) prefix for platform-specific files)zhome=Nz+(Unix only) home directory to install under)z
install-base=Nz;base installation directory (instead of --prefix or --home))zinstall-platbase=Nz\base installation directory for platform-specific files (instead of --exec-prefix or --home))zroot=Nz<install everything relative to this alternate root directory)zinstall-purelib=Nz;installation directory for pure Python module distributions)zinstall-platlib=Nz8installation directory for non-pure module distributions)zinstall-lib=Nzginstallation directory for all module distributions (overrides --install-purelib and --install-platlib))zinstall-headers=Nz(installation directory for C/C++ headers)zinstall-scripts=Nz)installation directory for Python scripts)z
install-data=Nz%installation directory for data files)compileczcompile .py to .pyc [default])z
no-compileNzdon't compile .py files)z	optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])forcefz1force installation (overwrite any existing files))z
skip-buildNz2skip rebuilding everything (for testing/debugging))zrecord=Nz3filename in which to record list of installed filesrrz
skip-builduserNz!install in user site-package '%s'z
no-compilecCsd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_t
|_t|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)zInitializes options.Nr)prefixexec_prefixhomerinstall_baseinstall_platbaserootinstall_purelibinstall_platlibinstall_headersinstall_libinstall_scriptsinstall_datar
install_userbaserinstall_usersiteroptimize
extra_pathinstall_path_filer
skip_buildwarn_dir
build_base	build_librecord)selfr7>/opt/alt/python37/lib64/python3.7/distutils/command/install.pyinitialize_optionss2zinstall.initialize_optionscCsx|js|js|jr&|js|jr&td|jr@|js8|jr@td|jrl|jsd|jsd|jsd|jsd|jrltdtjdkr|jr|	dd|_|
dtjdkr|n||
dt
jd	}td
d\}}y
t
j}Wntk
rd}YnX|j|j|j|d
t
jdddt
jdd|||||d|_trf|j|jd<|j|jd<||
d|j|jd<|j|jd<trd	dlm}td||j| |
d|jr|!|j"dkr|jj#r|j$|_"n|j%|_"|&dddddddd|'|j"|_(tj)*|j"|j+|_"|j,dk	r\|-ddddddd|
d |.d!d"d#dS)$zFinalizes options.zWmust supply either prefix/exec-prefix/home or install-base/install-platbase -- not bothz9must supply either home or prefix/exec-prefix -- not bothzGcan't combine user with prefix, exec_prefix/home, or install_(plat)baseposixz+exec-prefix option ignored on this platformNzpre-finalize_{unix,other}zpost-finalize_{unix,other}()rr r!z%d.%dz%d%d)Z	dist_nameZdist_versionZ
dist_fullname
py_versionZpy_version_shortZpy_version_nodotZ
sys_prefixr Zsys_exec_prefixr!abiflagsuserbaseZusersitezpost-expand_basedirs()baseZplatbase)pprintzconfig vars:zpost-expand_dirs()librrrrrZlibbasezafter prepending rootbuild)r3r3)r4r4)/r r!r"r#r$rrosnamewarn	dump_dirs
finalize_unixfinalize_othersysversionsplitrr>AttributeErrordistributionZget_nameZget_versionZget_fullnameversion_infoconfig_vars
HAS_USER_SITEr,r-expand_basedirsrrAprintexpand_dirscreate_home_pathr)Zext_modulesr'r&
convert_pathshandle_extra_pathinstall_libbasepathjoin
extra_dirsr%change_rootsZset_undefined_options)r6r=r r!r>rAr7r7r8finalize_optionss

















zinstall.finalize_optionscCstsdSddlm}t|dx||jD]r}|d}|ddkrN|dd}||jkrz|j|}||}t||}n||}t||}td||q*WdS)zDumps the list of user options.Nr)
longopt_xlate:=z  %s: %s)	rZdistutils.fancy_getoptr^rdebuguser_optionsnegative_opt	translategetattr)r6msgr^ZoptZopt_namevalr7r7r8rGus




zinstall.dump_dirscCs"|jdk	s|jdk	r\|jdkr2|jdkr2|jdksP|jdksP|jdksP|jdkrXtddS|j	r|j
dkrttd|j
|_|_|dn|j
dk	r|j
|_|_|dnl|jdkr|jdk	rtdtjtj|_tjtj|_n|jdkr|j|_|j|_|j|_|ddS)z&Finalizes options for posix platforms.NzPinstall-base or install-platbase supplied, but installation scheme is incompletez$User base directory is not specifiedrrz*must not supply exec-prefix without prefixr)r#r$r)r&r'r(r*r+rrr,r
select_schemer"r r!rDrYnormpathrJ)r6r7r7r8rHs<









zinstall.finalize_unixcCs|jr8|jdkrtd|j|_|_|tjdn|jdk	r\|j|_|_|dn\|j	dkrvtj
tj	|_	|j	|_|_y|tjWn"t
k
rtdtjYnXdS)z)Finalizes options for non-posix platformsNz$User base directory is not specifiedZ_userrz)I don't know how to install stuff on '%s')rr,rr#r$rirDrEr"r rYrjrJKeyError)r6r7r7r8rIs"


zinstall.finalize_othercCs@t|}x2tD]*}d|}t||dkrt||||qWdS)z=Sets the install directories by applying the install schemes.install_N)INSTALL_SCHEMESSCHEME_KEYSrfsetattr)r6rEZschemekeyZattrnamer7r7r8ris

zinstall.select_schemecCs\xV|D]N}t||}|dk	rtjdks0tjdkr<tj|}t||j}t|||qWdS)Nr:r)rfrDrErY
expanduserr	rPro)r6Zattrsattrrhr7r7r8
_expand_attrss

zinstall._expand_attrscCs|dddgdS)zNCalls `os.path.expanduser` on install_base, install_platbase and
        root.r#r$r%N)rs)r6r7r7r8rRszinstall.expand_basedirscCs|ddddddgdS)z+Calls `os.path.expanduser` on install dirs.r&r'r)r(r*r+N)rs)r6r7r7r8rTszinstall.expand_dirscGs0x*|D]"}d|}t||tt||qWdS)z!Call `convert_path` over `names`.rlN)rorrf)r6namesrErrr7r7r8rVs
zinstall.convert_pathscCs|jdkr|jj|_|jdk	rtdt|jtrB|jd|_t|jdkr`|jd}}n"t|jdkrz|j\}}ntdt	|}nd}d}||_
||_dS)	z4Set `path_file` and `extra_dirs` using `extra_path`.NzIDistribution option extra_path is deprecated. See issue27919 for details.,rrr<zY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsr;)r/rNrrF
isinstancestrrLlenrr	path_filer[)r6ryr[r7r7r8rWs$



zinstall.handle_extra_pathc	Gs4x.|D]&}d|}t||t|jt||qWdS)z:Change the install directories pointed by name using root.rlN)ror
r%rf)r6rtrErrr7r7r8r\s
zinstall.change_rootscCsf|js
dSttjd}xF|jD]8\}}||r&tj|s&|	d|t
|dq&WdS)zCreate directories under ~.N~zos.makedirs('%s', 0o700)i)rrrDrYrqrPitems
startswithisdirZdebug_printmakedirs)r6r"rErYr7r7r8rUszinstall.create_home_pathcCs*|js6|d|jdj}|jr6|tkr6tdx|D]}||q@W|j	r`|
|jr|}|j
rt|j
}x(tt|D]}|||d||<qW|t|j|fd|jttjjtj}ttjj|}tjtj|j}|jr&|j	r|js&||kr&td|jdS)zRuns the command.rCz"Can't install when cross-compilingNz'writing list of installed files to '%s'zmodules installed to '%s', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself)r1Zrun_commandrNZget_command_objZ	plat_namer2rrget_sub_commandsrycreate_path_filer5get_outputsr%rxrangeexecutermaprDrYrjrJnormcaser)r0rrb)r6Z
build_platcmd_nameoutputsZroot_lenZcounterZsys_pathr)r7r7r8runs6



zinstall.runcCsJtj|j|jd}|jr8|t||jgfd|n|	d|dS)zCreates the .pth filez.pthzcreating %szpath file '%s' not createdN)
rDrYrZrXryr0rrr[rF)r6filenamer7r7r8rIs

zinstall.create_path_filecCspg}x>|D]2}||}x"|D]}||kr&||q&WqW|jrl|jrl|tj|j	|jd|S)z.Assembles the outputs of all the sub-commands.z.pth)
rget_finalized_commandrappendryr0rDrYrZrX)r6rrcmdrr7r7r8rWs
zinstall.get_outputscCs2g}x(|D]}||}||qW|S)z*Returns the inputs of all the sub-commands)rrextend
get_inputs)r6Zinputsrrr7r7r8rhs

zinstall.get_inputscCs|jp|jS)zSReturns true if the current distribution has any Python
        modules to install.)rNZhas_pure_modulesZhas_ext_modules)r6r7r7r8has_libts
zinstall.has_libcCs
|jS)zLReturns true if the current distribution has any headers to
        install.)rNhas_headers)r6r7r7r8rzszinstall.has_headerscCs
|jS)zMReturns true if the current distribution has any scripts to.
        install.)rNhas_scripts)r6r7r7r8rszinstall.has_scriptscCs
|jS)zJReturns true if the current distribution has any data to.
        install.)rNZhas_data_files)r6r7r7r8has_dataszinstall.has_datar)r(r*r+Zinstall_egg_infocCsdS)NTr7)r6r7r7r8<lambda>zinstall.<lambda>) __name__
__module____qualname__ZdescriptionrcZboolean_optionsrQrrrdr9r]rGrHrIrirsrRrTrVrWr\rUrrrrrrrrZsub_commandsr7r7r7r8rIsh	

N(		",r)__doc__rJrDZ	distutilsrZdistutils.corerZdistutils.debugrZdistutils.sysconfigrZdistutils.errorsrZdistutils.file_utilrZdistutils.utilrr	r
rrZsiter
rrQZWINDOWS_SCHEMErmrnrr7r7r7r8<module>sV