ó
X¾÷Xc           @   sÉ  d  Z  d d l Z d d l Z d d l Z y# d d l m Z e j Z e Z	 Wn e
 k
 rl d Z e Z	 n Xe d k rˆ e d ƒ ‚ n  e d k  ry2 d d l m Z e s¼ e
 d ƒ ‚ n  [ d	 Z Wqe
 k
 rþ e	 rÿ e j d d
 k rû d	 Z qû qÿ qXn  e d k rd n d Z e j d e ƒ Z e d k rAd Z n  d e j k rre d k rre j d ƒ d Z n  e j d d ƒ Z e d k r§e d e d ƒ ‚ n  e e ƒ Z d „  Z d „  Z d S(   sL   Determine which implementation of the protobuf API is used in this process.
iÿÿÿÿN(   t   _api_implementationi   s%   api_version=1 is no longer supported.i    (   t   _use_fast_cpp_protoss2   _use_fast_cpp_protos import succeeded but was Nonei   i   t   pythont   cppt&   PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATIONt   PyPys\   PyPy does not work yet with cpp protocol buffers. Falling back to the python implementation.t.   PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSIONt   2s=   unsupported PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION: "s   " (supported versions: 2)c           C   s   t  S(   N(   t   _implementation_type(    (    (    sM   /tmp/pip-build-h1VYrz/protobuf/google/protobuf/internal/api_implementation.pyt   Typek   s    c           C   s   t  S(   N(   t   _implementation_version(    (    (    sM   /tmp/pip-build-h1VYrz/protobuf/google/protobuf/internal/api_implementation.pyt   Versionp   s    (   t   __doc__t   ost   warningst   syst   google.protobuf.internalR    t   api_versiont   _api_versiont   Truet'   _proto_extension_modules_exist_in_buildt   ImportErrort   Falset
   ValueErrort   google.protobufR   t   version_infot   _default_implementation_typet   getenvR   t   versiont   warnt   _implementation_version_strt   intR
   R	   R   (    (    (    sM   /tmp/pip-build-h1VYrz/protobuf/google/protobuf/internal/api_implementation.pyt   <module>    sN   	


					