Your IP : 52.14.49.59


Current Path : /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/extension.cpython-35.pyc



�Re��@s�ddlZddlZddlZddlZddlZddlmZddlm	Z	dd�Z
e
Ze	ejj
�ZGdd�de�Z
Gd	d
�d
e
�ZdS)�N)�map�)�
get_unpatchedcCs=d}yt|ddg�jdSWntk
r8YnXdS)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
rc@s.eZdZdZdd�Zdd�ZdS)�	Extensionz7Extension that uses '.c' files in place of '.pyx' filescOs2|jdd�|_tj|||||�dS)N�py_limited_apiF)�popr
�
_Extension�__init__)�self�name�sources�args�kwr	r	r
r#szExtension.__init__cCsqt�r
dS|jpd}|j�dkr4dnd}tjtjd|�}tt||j	��|_	dS)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�listrr)r�langZ
target_extrr	r	r
�_convert_pyx_sources_to_lang)s	z&Extension._convert_pyx_sources_to_langN)�__name__�
__module__�__qualname__�__doc__rrr	r	r	r
r src@seZdZdZdS)�Libraryz=Just like a regular Extension, but built as a library insteadN)r r!r"r#r	r	r	r
r$8sr$)rr�distutils.core�	distutils�distutils.errors�distutils.extensionZsetuptools.extern.six.movesrZmonkeyrrZ
have_pyrex�corerrr$r	r	r	r
�<module>s

?>