File "install_lib.cpython-37.opt-1.pyc"

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

B

 f @sLdZddlZddlZddlZddlmZddlmZdZ	GdddeZ
dS)zkdistutils.command.install_lib

Implements the Distutils 'install_lib' command
(install all Python modules).N)Command)DistutilsOptionErrorz.pyc@seZdZdZdddddddgZd	d
dgZdd
iZd
dZddZddZ	ddZ
ddZddZddZ
ddZddZdd Zd!S)"install_libz7install all Python modules (extensions and pure Python))zinstall-dir=dzdirectory to install to)z
build-dir=bz'build directory (where to install from))forcefz-force installation (overwrite existing 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])z
skip-buildNzskip the build stepsrr	z
skip-buildz
no-compilecCs(d|_d|_d|_d|_d|_d|_dS)Nr)install_dir	build_dirrr	optimize
skip_build)selfrB/opt/alt/python37/lib64/python3.7/distutils/command/install_lib.pyinitialize_options3szinstall_lib.initialize_optionsc	Cs|ddddddd|jdkr&d|_|jdkr6d	|_t|jtsyt|j|_|jd
kr^tWn ttfk
rtdYnXdS)Ninstall)	build_libr
)rr)rr)r	r	)rr)rrTF)rzoptimize must be 0, 1, or 2)Zset_undefined_optionsr	r
isinstanceintAssertionError
ValueErrorr)rrrrfinalize_options<s$


zinstall_lib.finalize_optionscCs0||}|dk	r,|jr,||dS)N)buildrdistributionhas_pure_modulesbyte_compile)routfilesrrrrunVszinstall_lib.runcCs2|js.|jr|d|jr.|ddS)Nbuild_py	build_ext)rrrZrun_commandhas_ext_modules)rrrrrfs



zinstall_lib.buildcCs8tj|jr ||j|j}n|d|jdS|S)Nz3'%s' does not exist -- no Python modules to install)ospathisdirr
Z	copy_treerwarn)rr!rrrrms
zinstall_lib.installcCsrtjr|ddSddlm}|dj}|jrH||d|j||j	d|j
dkrn|||j
|j||j|j	ddS)Nz%byte-compiling is disabled, skipping.r)r r)rrprefixdry_run)rrr*verboser+)sysdont_write_bytecoder)Zdistutils.utilr get_finalized_commandrootr	rr+rr,)rfilesr Zinstall_rootrrrr vs


zinstall_lib.byte_compilec
	Csh|sgS||}|}t||}t|ttj}g}x(|D] }	|tj||	|dq@W|S)N)	r/get_outputsgetattrlenr&sepappendr'join)
rZhas_anyZ	build_cmdZ
cmd_optionZ
output_dirZbuild_filesr

prefix_lenZoutputsfilerrr_mutate_outputss


 zinstall_lib._mutate_outputscCsvg}xl|D]d}tjtj|d}|tkr0q
|jrL|tjj	|dd|j
dkr
|tjj	||j
dq
W|S)Nr)optimizationr)r&r'splitextnormcasePYTHON_SOURCE_EXTENSIONr	r6	importlibutilcache_from_sourcer)rZpy_filenamesZbytecode_filesZpy_fileZextrrr_bytecode_filenamess



zinstall_lib._bytecode_filenamescCsR||jdd|j}|jr*||}ng}||jdd|j}|||S)zReturn the list of files that would be installed if this command
        were actually run.  Not affected by the "dry-run" flag or whether
        modules have actually been built yet.
        r#rr$)r:rrrr	rCr%)rZpure_outputsZbytecode_outputsZext_outputsrrrr2szinstall_lib.get_outputscCsLg}|jr&|d}|||jrH|d}|||S)zGet the list of files that are input to this command, ie. the
        files that get installed as they are named in the build tree.
        The files in this list correspond one-to-one to the output
        filenames returned by 'get_outputs()'.
        r#r$)rrr/extendr2r%)rZinputsr#r$rrr
get_inputss



zinstall_lib.get_inputsN)__name__
__module____qualname__ZdescriptionZuser_optionsZboolean_optionsZnegative_optrrr"rrr r:rCr2rErrrrrs(
		r)__doc__r&importlib.utilr@r-Zdistutils.corerZdistutils.errorsrr?rrrrr<module>s