ok

Mini Shell

Direktori : /lib/python3.6/site-packages/setuptools/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/setuptools/__pycache__/extension.cpython-36.pyc

3

9��f��@s|ddlZddlZddlZddlZddlZddlmZddlm	Z	dd�Z
e
Ze	ejj
�ZGdd�de�Z
Gd	d
�d
e
�ZdS)�N)�map�)�
get_unpatchedcCs2d}yt|dgd�jdStk
r,YnXdS)z0
    Return True if Cython can be imported.
    zCython.Distutils.build_ext�	build_ext)�fromlistTF)�
__import__r�	Exception)Zcython_impl�r	�/usr/lib/python3.6/extension.py�_have_cythonsrc@s eZdZdZdd�Zdd�ZdS)�	Extensionz7Extension that uses '.c' files in place of '.pyx' filescOs(|jdd�|_tj|||f|�|�dS)N�py_limited_apiF)�popr
�
_Extension�__init__)�self�name�sources�args�kwr	r	r
r#szExtension.__init__cCsNt�r
dS|jpd}|j�dkr$dnd}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$)
rZlanguage�lower�	functools�partial�re�sub�listrr)rZlangZ
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 src@seZdZdZdS)�Libraryz=Just like a regular Extension, but built as a library insteadN)rrr r!r	r	r	r
r"8sr")rrZdistutils.coreZ	distutilsZdistutils.errorsZdistutils.extensionZsetuptools.extern.six.movesrZmonkeyrrZ
have_pyrexZcorerrr"r	r	r	r
�<module>s

Zerion Mini Shell 1.0