| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.9/site-packages/setuptools/__pycache__/ |
Upload File : |
a
H�8h� � @ sp d dl Z d dlZd dlZd dlZd dlZddlmZ dd� ZeZ eej
j�ZG dd� de�ZG dd � d e�Z
dS )
� N� )�
get_unpatchedc C s2 d} zt | dgd�j W dS ty, Y n0 dS )z0
Return True if Cython can be imported.
zCython.Distutils.build_ext� build_ext)�fromlistTF)�
__import__r � Exception)Zcython_impl� r �8/usr/lib/python3.9/site-packages/setuptools/extension.py�_have_cython
s r
c @ s e Zd ZdZdd� Zdd� ZdS )� Extensionz7Extension that uses '.c' files in place of '.pyx' filesc O s. |� dd�| _tj| ||g|�R i |�� d S )N�py_limited_apiF)�popr �
_Extension�__init__)�self�name�sources�args�kwr r r r ! s zExtension.__init__c C sN t � 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 )r ZlangZ
target_extr r r r �_convert_pyx_sources_to_lang'