ó Û_e[c@s}ddlZddlZyeWnek r9eZnXd„Zd„Zd„Zd„Zd„Z d„Z d„Z dS( iÿÿÿÿNcCs ddlm}||ƒ‚dS(Niÿÿÿÿ(tDistutilsSetupError(tdistutils.errorsR(tmsgR((s3/tmp/pip-install-KP2Jbq/cffi/cffi/setuptools_ext.pyterror scBsKe|ƒ}|jƒ}WdQX|d7}e||dƒ}|||UdS(Ns texec(topentreadtcompile(tfilenametglobtftsrctcode((s3/tmp/pip-install-KP2Jbq/cffi/cffi/setuptools_ext.pytexecfiles  c Cs/ddlm}t|tƒs<tdt|ƒjfƒnt|ƒ}y|jdƒ\}}Wn"t k r…td|fƒnXt j j |ƒsõd}|j ddƒd }t j j |ƒrÞd |d|f}ntd ||fƒnid d 6|d6}t||ƒy||}Wn%tk rKtd||fƒnXt||ƒsg|ƒ}nt||ƒs–td|t|ƒjfƒnt|dƒs¹td|fƒn|j\} } } } |jró| jƒ} |j| ƒn| dkrt||| ƒnt||| | | | ƒdS(Niÿÿÿÿ(tFFIsEargument to 'cffi_modules=...' must be a str or a list of str, not %rt:s3%r must be of the form 'path/build.py:ffi_variable'tt.t/s.pys (rewrite cffi_modules to [%r])s#%r does not name an existing file%st__cffi__t__name__t__file__s!%r: object %r not found in modules"%r is not an FFI instance (got %r)t_assigned_sources*%r: the set_source() method was not called(tcffi.apiRt isinstancet basestringRttypeRtstrtsplitt ValueErrortostpathtexiststreplaceR tKeyErrorthasattrRt_windows_unicodetcopyt_apply_windows_unicodetNonet_add_py_modulet _add_c_module( tdisttmod_specRtbuild_file_namet ffi_var_nametextt rewrittentmod_varstffit module_nametsourcetsource_extensiontkwds((s3/tmp/pip-install-KP2Jbq/cffi/cffi/setuptools_ext.pytadd_cffi_modulesL          cCs•d|kr‘ttdƒ r‘tjdkr‘ddl}y9t|jjdƒdƒ}|dkrot|d= 26 is in use. Do not alter the setting if it already exists. Setuptools takes care of ignoring the flag on Python 2 and PyPy. CPython itself should ignore the flag in a debugging version (by not listing .abi3.so in the extensions it supports), but it doesn't so far, creating troubles. That's why we check for "not hasattr(sys, 'gettotalrefcount')" (the 2.7 compatible equivalent of 'd' not in sys.abiflags). (http://bugs.python.org/issue28401) On Windows, it's better not to use py_limited_api until issue #355 can be resolved (by having virtualenv copy PYTHON3.DLL). See also the start of _cffi_include.h. tpy_limited_apitgettotalrefcounttwin32iÿÿÿÿNRii( R#tsystplatformt setuptoolstintt __version__t partitiontTrueR(t ExtensionR5R<tsetuptools_major_version((s3/tmp/pip-install-KP2Jbq/cffi/cffi/setuptools_ext.pyt_set_py_limited_apiIs   c s3ddlm}ddlm}ddlm‰ddlm‰ddlm ‰dg}|j |j dgƒƒt ||ƒ}|d ˆd||‰d‡‡‡‡‡‡‡‡ fd †‰|jdkrÛg|_n|jjˆƒ|jjd |ƒ‰d ˆf‡‡‡fd †ƒY} | |jd s      -  . 1