Your IP : 52.14.49.59
�Re� � @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d � Z
e
Z e e j j
� Z Gd d � d e � Z
Gd d
� d
e
� Z d S)� N)�map� )�
get_unpatchedc C s= d } y t | d d g �j d SWn t k
r8 Yn Xd S)z0
Return True if Cython can be imported.
zCython.Distutils.build_ext�fromlist� build_extTF)�
__import__r � Exception)Zcython_impl� r ��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/extension.py�_have_cython s
r c @ s. e Z d Z d Z d d � Z d d � Z d S)� Extensionz7Extension that uses '.c' files in place of '.pyx' filesc O s2 | j d d � | _ t j | | | | | � d S)N�py_limited_apiF)�popr
�
_Extension�__init__)�self�name�sources�args�kwr r r
r # s zExtension.__init__c C sq t � r
d S| j p d } | j � d k r4 d n d } t j t j d | � } t t | | j � � | _ d S)z�
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.
N� zc++z.cppz.cz.pyx$)
r �language�lower� functools�partial�re�sub�listr r )r �langZ
target_extr r r r
�_convert_pyx_sources_to_lang) s z&Extension._convert_pyx_sources_to_langN)�__name__�
__module__�__qualname__�__doc__r r r r r r
r s r c @ s e Z d Z d Z d S)�Libraryz=Just like a regular Extension, but built as a library insteadN)r r! r"