|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/cffi/ |
Upload File : |
�
y�\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( ( s. /tmp/pip-install-A1qMVe/cffi/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( ( s. /tmp/pip-install-A1qMVe/cffi/cffi/pkgconfig.pyt call s0
%#
c s� d � � d � � d � � d � � d � � d � � � � � � � � f d � } i } x'