HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //proc/276314/root/usr/lib/python3/dist-packages/setuptools/__pycache__/extension.cpython-39.pyc
a

��`��@spddlZddlZddlZddlZddlZddlmZdd�ZeZ	eej
j�ZGdd�de�ZGdd	�d	e�Z
dS)
�N�)�
get_unpatchedcCs2d}zt|dgd�jWdSty,Yn0dS)z0
    Return True if Cython can be imported.
    zCython.Distutils.build_ext�	build_ext)�fromlistTF)�
__import__r�	Exception)Zcython_impl�r�6/usr/lib/python3/dist-packages/setuptools/extension.py�_have_cython
sr
c@s eZdZdZdd�Zdd�ZdS)�	Extensionz7Extension that uses '.c' files in place of '.pyx' filescOs.|�dd�|_tj|||g|�Ri|��dS)N�py_limited_apiF)�popr�
_Extension�__init__)�self�name�sources�args�kwrrr	r!szExtension.__init__cCsNt�r
dS|jpd}|��dkr$dnd}t�tjd|�}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
Zlanguage�lower�	functools�partial�re�sub�list�mapr)rZlangZ
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)rrr r!rrrr	r"6sr")rrZdistutils.coreZ	distutilsZdistutils.errorsZdistutils.extensionZmonkeyrr
Z
have_pyrexZcorerrr"rrrr	�<module>s