Spade
Mini Shell
�
p�Wc@sddlZddlZdefd��YZdefd��YZdddd d
gZdd�Zdd
�Zdd�Zyddl m
Z
Wnek
r�d�Z
nXd�Zye
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.pyRstsourcestinclude_dirstlibrary_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����(tDistributiontext_modulest build_exttffiplatformtforcet build_libt
build_tempis%s:
%s(RR%tdistutils.errorst
distutils.logtparse_config_filestget_option_dicttTruetlogt
set_thresholdt
set_verbositytrun_commandtget_command_objtget_outputsterrorstCompileErrort 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}x�tr�|}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(