File "unixccompiler.cpython-34.pyc"

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


h fU5@sdZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
mZmZmZddlmZejdkrddlZnGd	d
d
e	ZdS)a9distutils.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'
N)	sysconfig)newer)	CCompilergen_preprocess_optionsgen_lib_options)DistutilsExecErrorCompileErrorLibError	LinkError)logdarwincseZdZdZidd6dgd6dgd6dgd6ddgd	6dgd
6ddgd
6dd6Zejdddkrdged<nddddddgZdZdZ	dZ
dZdZZ
ZejdkrdZnfddZdddddd d!Zd"d#Zdd$dd%d&Zdddddd$ddddd'd(
Zd)d*Zd+d,Zd-d.Zd/d0Zd$d1d2ZS)3
UnixCCompilerZunixNpreprocessorZcccompilercompiler_socompiler_cxxz-shared	linker_so
linker_exearz-crarchiverranlibrz.cz.Cz.ccz.cxxz.cppz.mz.oz.az.soz.dylibzlib%s%scygwinz.execsht|j|j|||\}}}tjd}|r[||kr[|j|n|||fS)z'Remove standard library path from rpathLIBDIR)super	__class__
_fix_lib_argsrget_config_varremove)self	librarieslibrary_dirsruntime_library_dirsZlibdir)r</opt/alt/python34/lib64/python3.4/distutils/unixccompiler.pyrSszUnixCCompiler._fix_lib_argscCs*|jd||}|\}}}t||}	|j|	}
|r\|
jd|gn|ru||
dd<n|r|
j|n|
j||js|dkst||r&|r|jtj	j
|ny|j|
Wq&tk
r"}zt
|WYdd}~Xq&XndS)Nz-or)Z_fix_compile_argsrrextendappendZforcermkpathospathdirnamespawnrr)rsourceZoutput_fileZmacrosZinclude_dirs
extra_preargsextra_postargs
fixed_argsignorepp_optsZpp_argsmsgr#r#r$
preprocess]s$

$zUnixCCompiler.preprocessc	Cs|j}tjdkr1tj|||}ny&|j|||d|g|Wn1tk
r}zt|WYdd}~XnXdS)Nrz-o)rsysplatform_osx_supportcompiler_fixupr+rr)	robjsrcZextZcc_argsr.r1rr2r#r#r$_compilews		zUnixCCompiler._compilercCs|j||\}}|j|d|}|j||r|jtjj||j|j|g||j	|j
ry|j|j
|gWqtk
r}zt|WYdd}~XqXqnt
jd|dS)N
output_dirzskipping %s (up-to-date))_fix_object_argslibrary_filename
_need_linkr'r(r)r*r+robjectsrrr	rdebug)rr?Zoutput_libnamer;r@target_langoutput_filenamer2r#r#r$create_static_libs	%zUnixCCompiler.create_static_libcCsa|j||\}}|j|||}|\}}}t||||}t|ttdfs{tdn|dk	rtjj	||}n|j
||rM||j|d|g}|	rdg|dd<n|
r|
|dd<n|r|j|n|j
tjj|y|tjkrX|jdd}n|jdd}|
dkr|jrd}tjj|ddkrd}x!d||kr|d7}qWn|j|||<ntjd	krtj||}n|j||Wq]tk
rI}zt|WYdd}~Xq]Xntjd
|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>r?r%r'r*rZ
EXECUTABLErrrbasenamer4r5r6r7r+rr
rr@)rZtarget_descr?rBr;r r!r"Zexport_symbolsr@r-r.Z
build_temprAr/Zlib_optsZld_argsZlinkerir2r#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_gcccCstjjtjd}tjdddkr<d|Stjdddkr|j|rrdd|gSdd|gStjdd	d
kstjdddkrd|gS|j|rtjd
dkrd|Sd|Snd|SdS)NCCrrz-Lzhp-uxz-Wl,+sz+sZirix646Zosf1V5z-rpathGNULDyesz-Wl,--enable-new-dtags,-Rz-Wl,-Rz-R)r(r)rLrrr4r5rR)rrOrr#r#r$runtime_library_dir_options2
z(UnixCCompiler.runtime_library_dir_optioncCsd|S)Nz-lr#)rlibr#r#r$library_optionszUnixCCompiler.library_optioncCs|j|dd}|j|dd}|j|dd}tjdkrtjd}tjd|}|dkrd}	q|jd	}	nx5|D]-}
tj	j
|
|}tj	j
|
|}tj	j
|
|}
tjdkr|
jd
s|
jdr|
jdrtj	j
|	|
d	d|}tj	j
|	|
d	d|}tj	j
|	|
d	d|}
ntj	j|r|Stj	j|r|Stj	j|
r|
SqWdS)
NZlib_typeshareddylibstaticrCFLAGSz-isysroot\s+(\S+)/rEz/System/z/usr/z/usr/local/)
r=r4r5rrresearchgroupr(r)rK
startswithexists)rdirsrYr@Zshared_fZdylib_fZstatic_fZcflagsmZsysrootrOr[r\r]r#r#r$find_library_file	s4	
""%zUnixCCompiler.find_library_file)__name__
__module____qualname__Z
compiler_typeZexecutablesr4r5Zsrc_extensionsZ
obj_extensionZstatic_lib_extensionZshared_lib_extensionZdylib_lib_extensionZstatic_lib_formatZshared_lib_formatZdylib_lib_formatZ
exe_extensionrr3r:rCrNrPrRrXrZrgr#r#)rr$r
-sB







	
	6*r
)__doc__r(r4r`Z	distutilsrZdistutils.dep_utilrZdistutils.ccompilerrrrZdistutils.errorsrrr	r
rr5r6r
r#r#r#r$<module>s$"