File "install_lib.cpython-34.pyc"

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


h f @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/d0gZdddgZidd6ZddZddZddZ	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/python34/lib64/python3.4/distutils/command/install_lib.pyinitialize_options3s					zinstall_lib.initialize_optionscCs|jddddddd|jdkr:d
|_n|jdkrUd|_nt|jtsy.t|j|_|jdkrtnWqttfk
rtdYqXndS)Ninstall	build_librrrrrrrTFrzoptimize must be 0, 1, or 2)r!z	build_dir)zinstall_libzinstall_dir)forcer$)compiler%)optimizer&)
skip_buildr')rr"r#)Zset_undefined_optionsrr
isinstanceintAssertionError
ValueErrorr)rrrrfinalize_options<s$	
zinstall_lib.finalize_optionscCsE|j|j}|dk	rA|jjrA|j|ndS)N)buildr distributionhas_pure_modulesbyte_compile)routfilesrrrrunVs
zinstall_lib.runcCsN|jsJ|jjr(|jdn|jjrJ|jdqJndS)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)rr1rrrr ms	zinstall_lib.installcCstjr|jddSddlm}|jdj}|jrp||ddd|jd|d|j	n|j
dkr||d|j
d|jd|d	|jd|j	ndS)
Nz%byte-compiling is disabled, skipping.r)r0r rrprefixdry_runverbose)sysdont_write_bytecoder9Zdistutils.utilr0get_finalized_commandrootrrr;rr<)rfilesr0Zinstall_rootrrrr0vs	
	
zinstall_lib.byte_compilec
Cs|s
gS|j|}|j}t||}t|ttj}g}x4|D],}	|jtjj||	|dqZW|S)N)	r?get_outputsgetattrlenr6sepappendr7join)
rZhas_anyZ	build_cmdZ
cmd_optionZ
output_dirZbuild_filesrZ
prefix_lenZoutputsfilerrr_mutate_outputss
*zinstall_lib._mutate_outputscCsg}x|D]}tjjtjj|d}|tkrGq
n|jrr|jtjj	|ddn|j
dkr
|jtjj	|ddq
q
W|S)Nr"debug_overrideTrF)r6r7splitextnormcasePYTHON_SOURCE_EXTENSIONrrF	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.
        r3r!r4)rIr.r/rrrQr5)rZpure_outputsZbytecode_outputsZext_outputsrrrrBs	zinstall_lib.get_outputscCsrg}|jjr:|jd}|j|jn|jjrn|jd}|j|jn|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()'.
        r3r4)r.r/r?extendrBr5)rZinputsr3r4rrr
get_inputsszinstall_lib.get_inputs)rrr)rr	r
)zforcerr
)zcompilerr)rNr)rrr)rNr)__name__
__module____qualname__ZdescriptionZuser_optionsZboolean_optionsZnegative_optrr,r2r-r r0rIrQrBrSrrrrrs*	
		r)__doc__r6importlib.utilrNr=Zdistutils.corerZdistutils.errorsrrMrrrrr<module>s