File "unixccompiler.cpython-35.opt-2.pyc"

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



$Yf:@sddlZddlZddlZddlmZddlmZddlmZm	Z	m
Z
ddlmZm
Z
mZmZddlmZejdkrddlZGdd	d	eZdS)
N)	sysconfig)newer)	CCompilergen_preprocess_optionsgen_lib_options)DistutilsExecErrorCompileErrorLibError	LinkError)logdarwincseZdZdZddddgddgddgddd	gd
dgddd
gddiZejdddkrdged<ddddddgZdZdZ	dZ
dZdZdZ
ZZeZejdkrdZfdd Zdddddd!d"Zd#d$Zdd%dd&d'Zdddddd%ddddd(d)
Zd*d+Zd,d-Zd.d/Zd0d1Zd%d2d3ZS)4
UnixCCompilerZunixpreprocessorNcompilerZcccompiler_socompiler_cxx	linker_soz-shared
linker_exearchiverarz-crranlibrz.cz.Cz.ccz.cxxz.cppz.mz.oz.az.soz.dylibz.tbdzlib%s%scygwinz.execset|j|j|||\}}}tjd}|rX||krX|j||||fS)NLIBDIR)super	__class__
_fix_lib_argsrget_config_varremove)self	librarieslibrary_dirsruntime_library_dirsZlibdir)r2/opt/alt/python35/lib64/python3.5/unixccompiler.pyrUs
zUnixCCompiler._fix_lib_argscCs|jd||}|\}}}t||}	|j|	}
|rY|
jd|g|ro||
dd<|r|
j||
j||js|dkst||r|r|jtj	j
|y|j|
Wn1tk
r}zt
|WYdd}~XnXdS)Nz-or)Z_fix_compile_argsrrextendappendforcermkpathospathdirnamespawnrr)rsourceZoutput_fileZmacrosZinclude_dirs
extra_preargsextra_postargs
fixed_argsignorepp_optsZpp_argsmsgr#r#r$
preprocess_s$


$zUnixCCompiler.preprocessc	Cs|j}tjdkr.tj|||}y&|j|||d|g|Wn1tk
r}zt|WYdd}~XnXdS)Nrz-o)rsysplatform_osx_supportcompiler_fixupr,rr)	robjsrcextZcc_argsr/r2rr3r#r#r$_compileys		
zUnixCCompiler._compilercCs|j||\}}|j|d|}|j||r|jtjj||j|j|g||j	|j
ry|j|j
|gWqtk
r}zt|WYdd}~XqXnt
jd|dS)N
output_dirzskipping %s (up-to-date))_fix_object_argslibrary_filename
_need_linkr(r)r*r+r,robjectsrrr	rdebug)rrAZoutput_libnamer=rBtarget_langoutput_filenamer3r#r#r$create_static_libs	"zUnixCCompiler.create_static_libcCsI|j||\}}|j|||}|\}}}t||||}t|ttdfsxtd|dk	rtjj	||}|j
||r5||j|d|g}|	rdg|dd<|
r|
|dd<|r|j||j
tjj|y|tjkrI|jdd}n|jdd}|
dkr|jrd}tjj|ddkrd}xd||kr|d7}qW|j|||<tjd	krtj||}|j||WqEtk
r1}zt|WYdd}~XqEXntjd
|dS)Nz%'output_dir' must be a string or Nonez-oz-grzc++env=rzskipping %s (up-to-date))r>rr
isinstancestrtype	TypeErrorr)r*joinr@rAr%r(r+rZ
EXECUTABLErrrbasenamer5r6r7r8r,rr
rrB)rZtarget_descrArDr=r r!r"Zexport_symbolsrBr.r/Z
build_temprCr0Zlib_optsZld_argsZlinkerir3r#r#r$linksH		
"zUnixCCompiler.linkcCsd|S)Nz-Lr#)rdirr#r#r$library_dir_optionsz UnixCCompiler.library_dir_optioncCsd|kpd|kS)Ngcczg++r#)rZ
compiler_namer#r#r$_is_gccszUnixCCompiler._is_gcccCs tjjtjd}tjdddkr<d|Stjdddkr]d|Stjddd	kr|j|rd
d|gSdd|gStjdddkstjddd
krd|gS|j|rtjddkr	d|Sd|Snd|SdS)NCCrrz-LZfreebsdz-Wl,-rpath=zhp-uxz-Wl,+sz+sZirix646Zosf1V5z-rpathGNULDyesz-Wl,--enable-new-dtags,-Rz-Wl,-Rz-R)r)r*rNrrr5r6rT)rrQrr#r#r$runtime_library_dir_options 2
z(UnixCCompiler.runtime_library_dir_optioncCsd|S)Nz-lr#)rlibr#r#r$library_option
szUnixCCompiler.library_optioncCs.|j|dd}|j|dd}|j|dd}|j|dd}tjdkrtjd}tjd|}	|	dkrd	}
n|	jd
}
x|D]w}tj	j
||}tj	j
||}
tj	j
||}tj	j
||}tjdkr|jdsF|jdr|jd
rtj	j
|
|d
d|}tj	j
|
|d
d|}
tj	j
|
|d
d|}tj	j
|
|d
d|}tj	j|
r|
Stj	j|r|Stj	j|r|Stj	j|r|SqWdS)NZlib_typeshareddylib
xcode_stubstaticrCFLAGSz-isysroot\s+(\S+)/rGz/System/z/usr/z/usr/local/)
r?r5r6rrresearchgroupr)r*rM
startswithexists)rdirsr[rBZshared_fZdylib_fZxcode_stub_fZstatic_fZcflagsmZsysrootrQr]r^r`r_r#r#r$find_library_file
s>	
""""zUnixCCompiler.find_library_file)__name__
__module____qualname__Z
compiler_typeZexecutablesr5r6Zsrc_extensionsZ
obj_extensionZstatic_lib_extensionZshared_lib_extensionZdylib_lib_extensionZxcode_stub_lib_extensionZstatic_lib_formatZshared_lib_formatZdylib_lib_formatZxcode_stub_lib_formatZ
exe_extensionrr4r<rErPrRrTrZr\rjr#r#)rr$r
-sF				

	6,r
)r)r5rcZ	distutilsrZdistutils.dep_utilrZdistutils.ccompilerrrrZdistutils.errorsrrr	r
rr6r7r
r#r#r#r$<module>s$"