Viewing File: /usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyo

ó
p§Wc@sddlZddlZdefd„ƒYZdefd„ƒYZdddd	d
gZdd„Zdd
„Zdd„Zyddl	m
Z
Wnek
r­d„Z
nXd„Zye
efZddlZWn#ek
røe
ZddlZnXd„Zd„ZdS(iÿÿÿÿNtVerificationErrorcBseZdZRS(s- An error raised when verification fails
    (t__name__t
__module__t__doc__(((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyRstVerificationMissingcBseZdZRS(sl An error raised when incomplete structures are passed into
    cdef, but no verification has been done
    (RRR(((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyRstsourcestinclude_dirstlibrary_dirst
extra_objectstdependscKsYddlm}|g}x'|D]}|jtjj|ƒƒq W|d|d||S(Niÿÿÿÿ(t	ExtensiontnameR(tdistutils.coreR
tappendtostpathtnormpath(tsrcfilenametmodnameRtkwdsR
t
allsourcestsrc((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyt
get_extensions
	
icCs„tjjƒ}z(t|||ƒ}tjj|ƒ}WdxB|jƒD]4\}}tjj|ƒ|krG|tj|<qGqGWX|S(s-Compile a C extension module using distutils.N(Rtenvirontcopyt_buildRtabspathtitemstget(ttmpdirtexttcompiler_verboset
saved_environtoutputfilenametkeytvalue((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pytcompilescCs>ddlm}ddl}ddl}|i|gd6ƒ}|jƒ|jdƒ}dtf|d<d|f|d<d|f|d<yo|jjd	ƒpŸd	}z?|jj	|ƒ|j
dƒ|jdƒ}|jƒ\}	Wd|jj|ƒXWnA|j
j|j
jfk
r9}
td
|
jj|
fƒ‚nX|	S(Niÿÿÿÿ(tDistributiontext_modulest	build_exttffiplatformtforcet	build_libt
build_tempis%s: %s(RR%tdistutils.errorst
distutils.logtparse_config_filestget_option_dicttTruetlogt
set_thresholdt
set_verbositytrun_commandtget_command_objtget_outputsterrorstCompileErrort	LinkErrorRt	__class__R(RRRR%t	distutilstdisttoptionst	old_leveltcmd_objtsonamete((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyR's(


 (tsamefilecCs"tjj|ƒtjj|ƒkS(N(RRR(tf1tf2((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyRBEscCs¹tjj|ƒs|S|}g}xtr´|}tjj|ƒ\}}||ks\|r`|S|j|ƒy0t|tjƒrœ|jƒtjj	|ŒSWq%t
k
r°q%Xq%WdS(N(RRtisabsR0tsplitR
RBtcurdirtreversetjointOSError(RtdirtnamestprevdirR((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pytmaybe_relative_pathHs 	


cCs#t|tƒr/|jdt|ƒ|fƒnðt|tƒr™t|jƒƒ}|jdt|ƒƒxµ|D]$}t||ƒt|||ƒqnWn†t|tt	fƒræ|jdt|ƒƒxW|D]}t||ƒqÌWn9t|t
ƒr|jd|fƒntd|fƒ‚dS(Ns%ds%ss%dds%dls%dis7the keywords to verify() contains unsupported object %r(t
isinstancetstrtwritetlentdicttsortedtkeyst_flattentlistttupletint_or_longt	TypeError(txtfRUR"R#((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyRVcs  


cCs#tjƒ}t||ƒ|jƒS(N(t	cStringIOtStringIORVtgetvalue(R[R\((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pytflattenvs
((tsysRt	ExceptionRRtLIST_OF_FILE_NAMESRR$Rtos.pathRBtImportErrorRNtinttlongRYR]t	NameErrortioRVR`(((s6/usr/lib64/python2.7/site-packages/cffi/ffiplatform.pyt<module>s(	

	
	
Back to Directory File Manager