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

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



Yf @sjdZddlZddlZddlZddlmZddlmZdZ	GdddeZ
dS)zkdistutils.command.install_lib

Implements the Distutils 'install_lib' command
(install all Python modules).N)Command)DistutilsOptionErrorz.pyc	@seZdZdZd*d+d,d-d.d/d0gZdddgZddiZddZddZddZ	ddZ
ddZd d!Zd"d#Z
d$d%Zd&d'Zd(d)ZdS)1install_libz7install all Python modules (extensions and pure Python)install-dir=ddirectory to install to
build-dir=b'build directory (where to install from)forcef-force installation (overwrite existing files)compileccompile .py to .pyc [default]
no-compileNdon't compile .py files	optimize=Olalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]
skip-buildskip the build stepscCs:d|_d|_d|_d|_d|_d|_dS)Nr)install_dir	build_dirrroptimize
skip_build)selfrB/opt/alt/python35/lib64/python3.5/distutils/command/install_lib.pyinitialize_options3s					zinstall_lib.initialize_optionscCs|jddddddd|jdkr7d
|_|jdkrOd|_t|jtsy+t|j|_|jdkrtWn$ttfk
rtdYnXdS)Ninstall	build_librrrrrrrTFrzoptimize must be 0, 1, or 2)r!r)rr)rr)rr)rr)rr)rr"r#)Zset_undefined_optionsrr
isinstanceintAssertionError
ValueErrorr)rrrrfinalize_options<s$			
zinstall_lib.finalize_optionscCsB|j|j}|dk	r>|jjr>|j|dS)N)buildr distributionhas_pure_modulesbyte_compile)routfilesrrrrunVs
zinstall_lib.runcCsE|jsA|jjr%|jd|jjrA|jddS)Nbuild_py	build_ext)rr*r+Zrun_commandhas_ext_modules)rrrrr)fs
	
zinstall_lib.buildcCsLtjj|jr0|j|j|j}n|jd|jdS|S)Nz3'%s' does not exist -- no Python modules to install)ospathisdirrZ	copy_treerwarn)rr-rrrr ms	zinstall_lib.installcCstjr|jddSddlm}|jdj}|jrm||ddd|jd|d|j	|j
dkr||d|j
d|jd|d	|jd|j	dS)
Nz%byte-compiling is disabled, skipping.r)r,r rrprefixdry_runverbose)sysdont_write_bytecoder5Zdistutils.utilr,get_finalized_commandrootrrr7rr8)rfilesr,Zinstall_rootrrrr,vs	
	
zinstall_lib.byte_compilec
Cs|s
gS|j|}|j}t||}t|ttj}g}x4|D],}	|jtjj||	|dqZW|S)N)	r;get_outputsgetattrlenr2sepappendr3join)
rZhas_anyZ	build_cmdZ
cmd_optionZ
output_dirZbuild_filesrZ
prefix_lenZoutputsfilerrr_mutate_outputss
*zinstall_lib._mutate_outputscCsg}x|D]}tjjtjj|d}|tkrDq
|jrl|jtjj	|dd|j
dkr
|jtjj	|d|j
q
W|S)Nr"optimizationr)r2r3splitextnormcasePYTHON_SOURCE_EXTENSIONrrB	importlibutilcache_from_sourcer)rZpy_filenamesZbytecode_filesZpy_fileZextrrr_bytecode_filenamess
"	zinstall_lib._bytecode_filenamescCsu|j|jjdd|j}|jr?|j|}ng}|j|jjdd|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/r!r0)rEr*r+rrrNr1)rZpure_outputsZbytecode_outputsZext_outputsrrrr>s	zinstall_lib.get_outputscCslg}|jjr7|jd}|j|j|jjrh|jd}|j|j|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/r0)r*r+r;extendr>r1)rZinputsr/r0rrr
get_inputsszinstall_lib.get_inputs)rrr)rr	r
)rrr
)rrr)rNr)rrr)rNr)__name__
__module____qualname__ZdescriptionZuser_optionsZboolean_optionsZnegative_optrr(r.r)r r,rErNr>rPrrrrrs*			r)__doc__r2importlib.utilrKr9Zdistutils.corerZdistutils.errorsrrJrrrrr<module>s