Ńň
6ťUc           @   s˙   d  d k  Z  d  d k Z d  d k Z d  d k Z d  d k Z d  d k Z d d k l Z d d k	 l
 Z
 e e i i  Z e
 i   d   Z e Z d e f d     YZ d e f d	     YZ e e i _ e e i _ d
 e  i j o e e  i d
 _ n d S(   i˙˙˙˙Ni   (   t   _get_unpatched(   t   msvc9_supportc          C   s>   d }  y t  |  d d g i t SWn t j
 o n Xt S(   s0   
    Return True if Cython can be imported.
    s   Cython.Distutils.build_extt   fromlistt	   build_ext(   s   Cython.Distutils.build_ext(   t
   __import__R   t   Truet	   Exceptiont   False(   t   cython_impl(    (    s<   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/extension.pyt   _have_cython   s    t	   Extensionc           B   s   e  Z d  Z d   Z RS(   s7   Extension that uses '.c' files in place of '.pyx' filesc         C   sv   t    o d S|  i p d } | i   d j o d n d } t i t i d |  } t t | |  i	   |  _	 d S(   sÜ   
        Replace sources with .pyx extensions to sources with the target
        language extension. This mechanism allows language authors to supply
        pre-converted sources but to prefer the .pyx sources.
        Nt    s   c++s   .cpps   .cs   .pyx$(
   R	   t   languaget   lowert	   functoolst   partialt   ret   subt   listt   mapt   sources(   t   selft   langt
   target_extR   (    (    s<   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/extension.pyt   _convert_pyx_sources_to_lang#   s    
 (   t   __name__t
   __module__t   __doc__R   (    (    (    s<   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/extension.pyR
       s   t   Libraryc           B   s   e  Z d  Z RS(   s=   Just like a regular Extension, but built as a library instead(   R   R   R   (    (    (    s<   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/extension.pyR   1   s   s   distutils.command.build_ext(   t   sysR   R   t   distutils.coret	   distutilst   distutils.errorst   distutils.extensiont   distR    R   R   t   coreR
   t
   _Extensiont   patch_for_specialized_compilerR	   t
   have_pyrexR   t	   extensiont   modules(    (    (    s<   /home/rpmbuild/BUILD/setuptools-18.1/setuptools/extension.pyt   <module>   s"   
	