%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyc |
� ��]c @ s\ d d l Z d d l Z d d l Z d d l m Z d � Z e j � d � Z d � Z d S( i����Ni ( t PkgConfigErrorc C s� x� | j � D]� \ } } | | k r2 | | | <q t | | t � s[ t d | f � � n t | t � s� t d | 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( t itemst isinstancet listt TypeErrort extend( t cfg1t cfg2t keyt value( ( sE /opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyt merge_flags s c C s} d d g } | j | � | j | � y% t j | d t j d t j �} Wn2 t k r } t d t | � j � f � � n X| j � \ } } | j d k r� y | j | � } Wn t k r� n Xt | j � � � n t j d k rBt | t � rBy | j | � } WqBt k r>t d | | | | f � � qBXn t j d k ryd | k ryt d | | | f � � n | S( s5 Calls pkg-config and returns the output if found s pkg-configs --print-errorst stdoutt stderrs cannot run pkg-config: %si i sK pkg-config %s %s returned bytes that cannot be decoded with encoding %r: %rs \sE pkg-config %s %s returned an unsupported backslash-escaped output: %r( i ( t appendt subprocesst Popent PIPEt EnvironmentErrorR t strt stript communicatet returncodet decodet Exceptiont syst version_infoR t UnicodeDecodeErrort ost altsep( t libnamet flagt encodingt at pct et boutt berr( ( sE /opt/plesk/python/2.7/lib64/python2.7/site-packages/cffi/pkgconfig.pyt call s0 %# c s� d � � d � � d � � d � � d � � d � � � � � � � � f d � } i } x'