AlkantarClanX12

Your IP : 18.217.132.107


Current Path : /opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/install_lib.cpython-33.pyo

�
��f� c@sjdZddlZddlZddlZddlmZddlmZdZGdd�de�Z	dS(ukdistutils.command.install_lib

Implements the Distutils 'install_lib' command
(install all Python modules).iN(uCommand(uDistutilsOptionErroru.pyc	Bs�|EeZdZdZd*d+d,d-d.d/d0gZdddgZidd6Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd �Z
d!d"�Zd#d$�Zd%d&�Zd'd(�Zd)S(1uinstall_libu7install all Python modules (extensions and pure Python)uinstall-dir=ududirectory to install tou
build-dir=ubu'build directory (where to install from)uforceufu-force installation (overwrite existing files)ucompileucucompile .py to .pyc [default]u
no-compileudon't compile .py filesu	optimize=uOulalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]u
skip-builduskip the build stepscCs:d|_d|_d|_d|_d|_d|_dS(Ni(uNoneuinstall_diru	build_diruforceucompileuoptimizeu
skip_build(uself((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyuinitialize_options3s					uinstall_lib.initialize_optionscCs�|jddddddd�|jdkr:d|_n|jdkrUd|_nt|jt�s�y.t|j�|_|jdkr�t�nWq�t	tfk
r�t
d
��Yq�XndS(Nuinstallu	build_libu	build_diruinstall_libuinstall_diruforceucompileuoptimizeu
skip_buildiiiuoptimize must be 0, 1, or 2(u	build_libu	build_dir(uinstall_libuinstall_dir(uforceuforce(ucompileucompile(uoptimizeuoptimize(u
skip_buildu
skip_buildTF(iii(uset_undefined_optionsucompileuNoneuTrueuoptimizeuFalseu
isinstanceuintuAssertionErroru
ValueErroruDistutilsOptionError(uself((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyufinalize_options<s$	
uinstall_lib.finalize_optionscCsE|j�|j�}|dk	rA|jj�rA|j|�ndS(N(ubuilduinstalluNoneudistributionuhas_pure_modulesubyte_compile(uselfuoutfiles((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyurunVs
uinstall_lib.runcCsN|jsJ|jj�r(|jd�n|jj�rJ|jd�qJndS(Nubuild_pyu	build_ext(u
skip_buildudistributionuhas_pure_modulesurun_commanduhas_ext_modules(uself((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyubuildfs
	uinstall_lib.buildcCsLtjj|j�r0|j|j|j�}n|jd|j�dS|S(Nu3'%s' does not exist -- no Python modules to install(uosupathuisdiru	build_diru	copy_treeuinstall_diruwarn(uselfuoutfiles((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyuinstallms	uinstall_lib.installcCs�tjr|jd�dSddlm}|jd�j}|jrp||ddd|jd|d|j	�n|j
dkr�||d|j
d|jd|d	|jd|j	�ndS(
Nu%byte-compiling is disabled, skipping.i(ubyte_compileuinstalluoptimizeuforceuprefixudry_runuverbose(usysudont_write_bytecodeuwarnudistutils.utilubyte_compileuget_finalized_commandurootucompileuforceudry_runuoptimizeuverbose(uselfufilesubyte_compileuinstall_root((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyubyte_compilevs	
	
uinstall_lib.byte_compilec
Cs�|s
gS|j|�}|j�}t||�}t|�ttj�}g}x4|D],}	|jtjj||	|d���qZW|S(N(	uget_finalized_commanduget_outputsugetattrulenuosusepuappendupathujoin(
uselfuhas_anyu	build_cmdu
cmd_optionu
output_dirubuild_filesu	build_diru
prefix_lenuoutputsufile((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyu_mutate_outputs�s
*uinstall_lib._mutate_outputscCs�g}x�|D]�}tjjtjj|��d}|tkrGq
n|jro|jtj|dd��n|j
dkr
|jtj|dd��q
q
W|S(Niudebug_overrideiTF(uosupathusplitextunormcaseuPYTHON_SOURCE_EXTENSIONucompileuappenduimpucache_from_sourceuTrueuoptimizeuFalse(uselfupy_filenamesubytecode_filesupy_fileuext((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyu_bytecode_filenames�s
"	uinstall_lib._bytecode_filenamescCsu|j|jj�dd|j�}|jr?|j|�}ng}|j|jj�dd|j�}|||S(u�Return 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.
        ubuild_pyu	build_libu	build_ext(u_mutate_outputsudistributionuhas_pure_modulesuinstall_dirucompileu_bytecode_filenamesuhas_ext_modules(uselfupure_outputsubytecode_outputsuext_outputs((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyuget_outputs�s	uinstall_lib.get_outputscCsrg}|jj�r:|jd�}|j|j��n|jj�rn|jd�}|j|j��n|S(u�Get 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()'.
        ubuild_pyu	build_ext(udistributionuhas_pure_modulesuget_finalized_commanduextenduget_outputsuhas_ext_modules(uselfuinputsubuild_pyu	build_ext((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyu
get_inputs�suinstall_lib.get_inputsN(uinstall-dir=ududirectory to install to(u
build-dir=ubu'build directory (where to install from)(uforceufu-force installation (overwrite existing files)(ucompileucucompile .py to .pyc [default](u
no-compileNudon't compile .py files(u	optimize=uOulalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](u
skip-buildNuskip the build steps(u__name__u
__module__u__qualname__udescriptionuNoneuuser_optionsuboolean_optionsunegative_optuinitialize_optionsufinalize_optionsurunubuilduinstallubyte_compileu_mutate_outputsu_bytecode_filenamesuget_outputsu
get_inputs(u
__locals__((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyuinstall_libs*	
		uinstall_lib(
u__doc__uosuimpusysudistutils.coreuCommandudistutils.errorsuDistutilsOptionErroruPYTHON_SOURCE_EXTENSIONuinstall_lib(((uB/opt/alt/python33/lib64/python3.3/distutils/command/install_lib.pyu<module>s