Viewing File: /opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/extension.cpython-38.pyc

U

+a@spddlZddlZddlZddlZddlZddlmZddZeZ	eej
jZGdddeZGdd	d	eZ
dS)
N)
get_unpatchedcCs4d}zt|dgdjWdStk
r.YnXdS)z0
    Return True if Cython can be imported.
    zCython.Distutils.build_ext	build_ext)fromlistTF)
__import__r	Exception)Zcython_implr</tmp/pip-install-1bd_1mtk/setuptools/setuptools/extension.py_have_cython
sr
c@s eZdZdZddZddZdS)	Extensionz7Extension that uses '.c' files in place of '.pyx' filescOs(|dd|_tj|||f||dS)Npy_limited_apiF)popr
_Extension__init__)selfnamesourcesargskwrrr	r!szExtension.__init__cCsNtr
dS|jpd}|dkr$dnd}ttjd|}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.
        Nzc++z.cppz.cz.pyx$)
r
languagelower	functoolspartialresublistmapr)rlangZ
target_extrrrr	_convert_pyx_sources_to_lang's
z&Extension._convert_pyx_sources_to_langN)__name__
__module____qualname____doc__rrrrrr	rsrc@seZdZdZdS)Libraryz=Just like a regular Extension, but built as a library insteadN)r r!r"r#rrrr	r$6sr$)rrdistutils.core	distutilsdistutils.errorsdistutils.extensionZmonkeyrr
Z
have_pyrexcorerrr$rrrr	<module>s
Back to Directory File Manager