Your IP : 18.220.7.116


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

�
��fU5c@s�dZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
mZmZmZddlmZejdkr�ddlZnGd	d
�d
e	�ZdS(u9distutils.unixccompiler

Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
  * macros defined with -Dname[=value]
  * macros undefined with -Uname
  * include search directories specified with -Idir
  * libraries specified with -lllib
  * library search directories specified with -Ldir
  * compile handled by 'cc' (or similar) executable with -c option:
    compiles .c to .o
  * link static library handled by 'ar' command (possibly with 'ranlib')
  * link shared library handled by 'cc -shared'
iN(u	sysconfig(unewer(u	CCompilerugen_preprocess_optionsugen_lib_options(uDistutilsExecErroruCompileErroruLibErroru	LinkError(ulogudarwincs�|EeZdZdZidd6dgd6dgd6dgd6ddgd6dgd	6d
dgd6dd
6Zejdd�dkr�d
ged
<nddddddgZdZ	dZ
dZdZdZ
ZZejdkr�dZn�fdd�Zdddddd d!�Zd"d#�Zdd$dd%d&�Zdddddd$ddddd'd(�
Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd$d1d2�Z�S(3u
UnixCCompileruunixupreprocessoruccucompilerucompiler_soucompiler_cxxu-sharedu	linker_sou
linker_exeuaru-cruarchiveruranlibNiudarwinu.cu.Cu.ccu.cxxu.cppu.mu.ou.au.sou.dylibulib%s%sucygwinu.execsht|j|�j|||�\}}}tjd�}|r[||kr[|j|�n|||fS(u'Remove standard library path from rpathuLIBDIR(usuperu	__class__u
_fix_lib_argsu	sysconfiguget_config_varuremove(uselfu	librariesulibrary_dirsuruntime_library_dirsulibdir(u	__class__(u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyu
_fix_lib_argsSsuUnixCCompiler._fix_lib_argscCs*|jd||�}|\}}}t||�}	|j|	}
|r\|
jd|g�n|ru||
dd�<n|r�|
j|�n|
j|�|js�|dks�t||�r&|r�|jt	j
j|��ny|j|
�Wq&t
k
r"}zt|��WYdd}~Xq&XndS(Nu-oi(u_fix_compile_argsuNoneugen_preprocess_optionsupreprocessoruextenduappenduforceunewerumkpathuosupathudirnameuspawnuDistutilsExecErroruCompileError(uselfusourceuoutput_fileumacrosuinclude_dirsu
extra_preargsuextra_postargsu
fixed_argsuignoreupp_optsupp_argsumsg((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyu
preprocess]s$

$uUnixCCompiler.preprocessc	Cs�|j}tjdkr1tj|||�}ny&|j|||d|g|�Wn1tk
r�}zt|��WYdd}~XnXdS(Nudarwinu-o(ucompiler_sousysuplatformu_osx_supportucompiler_fixupuspawnuDistutilsExecErroruCompileError(	uselfuobjusrcuextucc_argsuextra_postargsupp_optsucompiler_soumsg((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyu_compilews		uUnixCCompiler._compileicCs�|j||�\}}|j|d|�}|j||�r�|jtjj|��|j|j|g||j	�|j
r�y|j|j
|g�Wq�tk
r�}zt|��WYdd}~Xq�Xq�nt
jd|�dS(Nu
output_diruskipping %s (up-to-date)(u_fix_object_argsulibrary_filenameu
_need_linkumkpathuosupathudirnameuspawnuarchiveruobjectsuranlibuDistutilsExecErroruLibErrorulogudebug(uselfuobjectsuoutput_libnameu
output_dirudebugutarget_languoutput_filenameumsg((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyucreate_static_lib�s	%uUnixCCompiler.create_static_libcCsa|j||�\}}|j|||�}|\}}}t||||�}t|ttd�f�s{td��n|dk	r�tj	j
||�}n|j||�rM||j|d|g}|	r�dg|dd�<n|
r|
|dd�<n|r|j
|�n|jtj	j|��y�|tjkrX|jdd�}n|jdd�}|
dkr�|jr�d}tj	j|d�dkr�d}x!d||kr�|d7}q�Wn|j|||<ntjd	krtj||�}n|j||�Wq]tk
rI}zt|��WYdd}~Xq]Xntjd
|�dS(Nu%'output_dir' must be a string or Noneu-ou-giuc++uenviu=udarwinuskipping %s (up-to-date)(u_fix_object_argsu
_fix_lib_argsugen_lib_optionsu
isinstanceustrutypeuNoneu	TypeErroruosupathujoinu
_need_linkuobjectsuextendumkpathudirnameu	CCompileru
EXECUTABLEu
linker_exeu	linker_soucompiler_cxxubasenameusysuplatformu_osx_supportucompiler_fixupuspawnuDistutilsExecErroru	LinkErrorulogudebug(uselfutarget_descuobjectsuoutput_filenameu
output_diru	librariesulibrary_dirsuruntime_library_dirsuexport_symbolsudebugu
extra_preargsuextra_postargsu
build_temputarget_langu
fixed_argsulib_optsuld_argsulinkeruiumsg((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyulink�sH		"uUnixCCompiler.linkcCsd|S(Nu-L((uselfudir((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyulibrary_dir_option�su UnixCCompiler.library_dir_optioncCsd|kpd|kS(Nugccug++((uselfu
compiler_name((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyu_is_gcc�suUnixCCompiler._is_gcccCs�tjjtjd��}tjdd�dkr<d|Stjdd�dkr�|j|�rrdd|gSdd|gStjdd	�d
ks�tjdd�dkr�d|gS|j|�r�tjd
�dkr�d|Sd|Snd|SdS(NuCCiudarwinu-Liuhp-uxu-Wl,+su+siuirix646uosf1V5u-rpathuGNULDuyesu-Wl,--enable-new-dtags,-Ru-Wl,-Ru-R(uosupathubasenameu	sysconfiguget_config_varusysuplatformu_is_gcc(uselfudirucompiler((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyuruntime_library_dir_option�s2
u(UnixCCompiler.runtime_library_dir_optioncCsd|S(Nu-l((uselfulib((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyulibrary_optionsuUnixCCompiler.library_optionc	Cs�|j|dd�}|j|dd�}|j|dd�}tjdkr�tjd�}tjd|�}|dkr�d}	q�|jd	�}	nx5|D]-}
t	j
j|
|�}t	j
j|
|�}t	j
j|
|�}
tjdkr�|
jd
�s|
jd�r�|
jd�r�t	j
j|	|
d	d�|�}t	j
j|	|
d	d�|�}t	j
j|	|
d	d�|�}
nt	j
j
|�r�|St	j
j
|�r�|St	j
j
|
�r�|
Sq�WdS(
Nulib_typeusharedudylibustaticudarwinuCFLAGSu-isysroot\s+(\S+)u/iu/System/u/usr/u/usr/local/(ulibrary_filenameusysuplatformu	sysconfiguget_config_varureusearchuNoneugroupuosupathujoinu
startswithuexists(uselfudirsulibudebugushared_fudylib_fustatic_fucflagsumusysrootudirusharedudylibustatic((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyufind_library_file	s4	
""%uUnixCCompiler.find_library_file(u__name__u
__module__u__qualname__u
compiler_typeuNoneuexecutablesusysuplatformusrc_extensionsu
obj_extensionustatic_lib_extensionushared_lib_extensionudylib_lib_extensionustatic_lib_formatushared_lib_formatudylib_lib_formatu
exe_extensionu
_fix_lib_argsu
preprocessu_compileucreate_static_libulinkulibrary_dir_optionu_is_gccuruntime_library_dir_optionulibrary_optionufind_library_file(u
__locals__((u	__class__u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyu
UnixCCompiler-sB







	
	6*u
UnixCCompiler(u__doc__uosusysureu	distutilsu	sysconfigudistutils.dep_utilunewerudistutils.ccompileru	CCompilerugen_preprocess_optionsugen_lib_optionsudistutils.errorsuDistutilsExecErroruCompileErroruLibErroru	LinkErroruloguplatformu_osx_supportu
UnixCCompiler(((u</opt/alt/python33/lib64/python3.3/distutils/unixccompiler.pyu<module>s$"

?>