%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyc

�
��]c@s\ddlZddlZddlZddlmZd�Zej�d�Zd�ZdS(i����Ni(tPkgConfigErrorcCs�x�|j�D]�\}}||kr2|||<q
t||t�s[td|f��nt|t�s�td|f��n||j|�q
W|S(s�Merge values from cffi config flags cfg2 to cf1

    Example:
        merge_flags({"libraries": ["one"]}, {"libraries": ["two"]})
        {"libraries": ["one", "two"]}
    s$cfg1[%r] should be a list of stringss$cfg2[%r] should be a list of strings(titemst
isinstancetlistt	TypeErrortextend(tcfg1tcfg2tkeytvalue((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytmerge_flagss
cCs}ddg}|j|�|j|�y%tj|dtjdtj�}Wn2tk
r}tdt|�j�f��nX|j�\}}|j	dkr�y|j
|�}Wntk
r�nXt|j���ntj
dkrBt|t�rBy|j
|�}WqBtk
r>td||||f��qBXntjd	kryd	|krytd
|||f��n|S(s5Calls pkg-config and returns the output if found
    s
pkg-configs--print-errorststdouttstderrscannot run pkg-config: %siisKpkg-config %s %s returned bytes that cannot be decoded with encoding %r:
%rs\sEpkg-config %s %s returned an unsupported backslash-escaped output:
%r(i(tappendt
subprocesstPopentPIPEtEnvironmentErrorRtstrtstriptcommunicatet
returncodetdecodet	Exceptiontsystversion_infoRtUnicodeDecodeErrortostaltsep(tlibnametflagtencodingtatpctetbouttberr((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytcalls0

%#

cs�d��d��d��d��d��d��������fd�}i}x'|D]}||�}t||�qaW|S(s�Return compiler line flags for FFI.set_source based on pkg-config output

    Usage
        ...
        ffibuilder.set_source("_foo", pkgconfig = ["libfoo", "libbar >= 1.8.3"])

    If pkg-config is installed on build machine, then arguments include_dirs,
    library_dirs, libraries, define_macros, extra_compile_args and
    extra_link_args are extended with an output of pkg-config for libfoo and
    libbar.

    Raises PkgConfigError in case the pkg-config call fails.
    cSs0g|j�D]}|jd�r
|d^q
S(Ns-Ii(tsplitt
startswith(tstringtx((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytget_include_dirsKscSs0g|j�D]}|jd�r
|d^q
S(Ns-Li(R&R'(R(R)((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytget_library_dirsNscSs0g|j�D]}|jd�r
|d^q
S(Ns-li(R&R'(R(R)((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyt
get_librariesQscSs;d�}g|j�D]!}|jd�r||�^qS(NcSs:|d}d|kr,t|jdd��S|dfSdS(Nit=i(ttupleR&tNone(R)((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyt_macroVs
s-D(R&R'(R(R0R)((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyt
get_macrosUs	cSs=g|j�D],}|jd�r
|jd�r
|^q
S(Ns-Is-D(R&R'(R(R)((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytget_other_cflags^s#cSs=g|j�D],}|jd�r
|jd�r
|^q
S(Ns-Ls-l(R&R'(R(R)((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytget_other_libsbs#cs|tj�}t|d�}t|d�}i�|�d6�|�d6�|�d6�|�d6�|�d6�|�d6S(	Ns--cflagss--libstinclude_dirstlibrary_dirst	librariest
define_macrostextra_compile_argstextra_link_args(RtgetfilesystemencodingR%(Rtfset
all_cflagstall_libs(R*R,R+R1R2R3(sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytkwargsgs




(R
(tlibsR>tretRt	lib_flags((R*R,R+R1R2R3sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pytflags_from_pkgconfig<s							
(	RRRterrorRR
R:R%RB(((sE/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyt<module>s$	"

Zerion Mini Shell 1.0