JezK
Edit File: extension.cpython-311.pyc
� ��f� � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ ddlm Z d� Z e Z e ej j � � Z G d� de� � Z G d� d e � � ZdS ) � N)�map� )� get_unpatchedc �^ � d} t | dg�� � j dS # t $ r Y nw xY wdS )z0 Return True if Cython can be imported. zCython.Distutils.build_ext� build_ext)�fromlistTF)� __import__r � Exception)�cython_impls �G/opt/alt/python311/lib/python3.11/site-packages/setuptools/extension.py�_have_cythonr sP � � /�K� ��;�+��7�7�7�A�A��t��� � � ��� �����5s � � *�*c � � e Zd ZdZd� Zd� ZdS )� Extensionz7Extension that uses '.c' files in place of '.pyx' filesc �j � |� dd� � | _ t j | ||g|�R i |�� d S )N�py_limited_apiF)�popr � _Extension�__init__)�self�name�sources�args�kws r r zExtension.__init__# sF � � !�f�f�%5�u�=�=�����D�$��=�$�=�=�=�"�=�=�=�=�=� c � � t � � rdS | j pd}|� � � dk rdnd}t j t j d|� � }t t || 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�listr r )r �lang� target_extr"