%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/distutils/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/distutils/unixccompiler.pyo


Pac@sdZdZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
mZmZddlmZmZmZmZdd	lmZejd
krddlZnde
fdYZdS(
s9distutils.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'
s$Id$iN(t
StringTypetNoneType(t	sysconfig(tnewer(t	CCompilertgen_preprocess_optionstgen_lib_options(tDistutilsExecErrortCompileErrortLibErrort	LinkError(tlogtdarwint
UnixCCompilercBsseZdZid'd6dgd6dgd6dgd6ddgd6dgd6d	d
gd6d'd6Zejd
 dkrdged<nddddddgZdZdZ	dZ
dZdZdZ
ZZeZejdkrdZnd'd'd'd'd'dZdZd'dd'd Zd'd'd'd'd'dd'd'd'd'd!
Zd"Zd#Zd$Zd%Zdd&ZRS((tunixtpreprocessortcctcompilertcompiler_sotcompiler_cxxs-sharedt	linker_sot
linker_exetars-crtarchivertranlibiRs.cs.Cs.ccs.cxxs.cpps.ms.os.as.sos.dylibs.tbdslib%s%stcygwins.execCs	|jd||\}}}t||}|j|}	|rV|	jd|gn|ri||	d*n|r|	j|n|	j||js|dkst||r|r|jt	j
j|ny|j|	Wqt
k
r}
t|
qXndS(Ns-oi(t_fix_compile_argstNoneRRtextendtappendtforceRtmkpathtostpathtdirnametspawnRR(tselftsourcetoutput_filetmacrostinclude_dirst
extra_preargstextra_postargstignoretpp_optstpp_argstmsg((s3/usr/local/lib/python2.7/distutils/unixccompiler.pyt
preprocessXs"


$c	Csz|j}tjdkr1tj|||}ny&|j|||d|g|Wntk
ru}t|nXdS(NRs-o(Rtsystplatformt_osx_supporttcompiler_fixupR#RR(	R$tobjtsrctexttcc_argsR*R,RR.((s3/usr/local/lib/python2.7/distutils/unixccompiler.pyt_compiless		icCs|j||\}}|j|d|}|j||r|jtjj||j|j|g||j	|j
ry|j|j
|gWqtk
r}t|qXqnt
jd|dS(Nt
output_dirsskipping %s (up-to-date)(t_fix_object_argstlibrary_filenamet
_need_linkRR R!R"R#RtobjectsRRR	Rtdebug(R$R=toutput_libnameR9R>ttarget_langtoutput_filenameR.((s3/usr/local/lib/python2.7/distutils/unixccompiler.pytcreate_static_lib~s	cCs"|j||\}}|j|||\}}}t||||}t|ttfkrotdn|dk	rtj	j
||}n|j||r||j|d|g}|	rdg|d*n|
r|
|d*n|r|j
|n|jtj	j|y|tjkr7|j}n
|j}|
dkr|jrd}tj	j|ddkrd}x!d||kr|d}qWn|j|||<ntjd	krtj||}n|j||Wqtk
r
}t|qXntjd
|dS(Ns%'output_dir' must be a string or Nones-os-gisc++tenvit=Rsskipping %s (up-to-date)(R:t
_fix_lib_argsRttypeRRt	TypeErrorRR R!tjoinR<R=RRR"Rt
EXECUTABLERRRtbasenameR0R1R2R3R#RR
RR>(R$ttarget_descR=RAR9t	librariestlibrary_dirstruntime_library_dirstexport_symbolsR>R)R*t
build_tempR@tlib_optstld_argstlinkertiR.((s3/usr/local/lib/python2.7/distutils/unixccompiler.pytlinksD	


cCsd|S(Ns-L((R$tdir((s3/usr/local/lib/python2.7/distutils/unixccompiler.pytlibrary_dir_optionscCsd|kpd|kS(Ntgccsg++((R$t
compiler_name((s3/usr/local/lib/python2.7/distutils/unixccompiler.pyt_is_gccscCstjjtjd}tjd dkr6d|Stjd dkrQd|Stjd d	kr|j|rd
d|gSdd|gStjd dkstjd d
krd|gS|j|rd|Sd|SdS(NtCCiRs-Litfreebsds-Wl,-rpath=ishp-uxs-Wl,+ss+stirix646tosf1V5s-rpaths-Wl,-Rs-R(R R!RJRtget_config_varR0R1RZ(R$RVR((s3/usr/local/lib/python2.7/distutils/unixccompiler.pytruntime_library_dir_options
&
cCsd|S(Ns-l((R$tlib((s3/usr/local/lib/python2.7/distutils/unixccompiler.pytlibrary_optionscCs|j|dd}|j|dd}|j|dd}|j|dd}tjdkrtjd}tjd|}	|	dkrd	}
q|	jd
}
nxj|D]b}t	j
j||}t	j
j||}
t	j
j||}t	j
j||}tjdkr|jdsI|jdr|jd
rt	j
j|
|d
|}t	j
j|
|d
|}
t	j
j|
|d
|}t	j
j|
|d
|}nt	j
j
|
r|
St	j
j
|r|St	j
j
|r|St	j
j
|r|SqWdS(Ntlib_typetsharedtdylibt
xcode_stubtstaticRtCFLAGSs-isysroot\s+(\S+)t/is/System/s/usr/s/usr/local/(R;R0R1RR_tretsearchRtgroupR R!RHt
startswithtexists(R$tdirsRaR>tshared_ftdylib_ftxcode_stub_ftstatic_ftcflagstmtsysrootRVRdReRgRf((s3/usr/local/lib/python2.7/distutils/unixccompiler.pytfind_library_files>	
N(t__name__t
__module__t
compiler_typeRtexecutablesR0R1tsrc_extensionst
obj_extensiontstatic_lib_extensiontshared_lib_extensiontdylib_lib_extensiontxcode_stub_lib_extensiontstatic_lib_formattshared_lib_formattdylib_lib_formattxcode_stub_lib_formatt
exe_extensionR/R8RBRURWRZR`RbRw(((s3/usr/local/lib/python2.7/distutils/unixccompiler.pyR
0sD







				6				(t__doc__t__revision__R R0RjttypesRRt	distutilsRtdistutils.dep_utilRtdistutils.ccompilerRRRtdistutils.errorsRRR	R
RR1R2R
(((s3/usr/local/lib/python2.7/distutils/unixccompiler.pyt<module>s$"

Zerion Mini Shell 1.0