OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : 3
K] @ s| d dl Z d dlZd dlZd dlZd dlZd dlmZ ddlm Z dd Z
e
Ze ejj
ZG dd deZ
G d d
d
e
ZdS ) N)map )
get_unpatchedc C s2 d} yt | dgdj dS tk
r, Y nX dS )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 s r c @ s e Zd ZdZdd Zdd ZdS ) Extensionz7Extension that uses '.c' files in place of '.pyx' filesc O s( |j dd| _tj| ||f|| d S )Npy_limited_apiF)popr
_Extension__init__)selfnamesourcesargskwr r r
r # s zExtension.__init__c C sN t 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$)
r Zlanguagelower functoolspartialresublistr r )r ZlangZ
target_extr r r r
_convert_pyx_sources_to_lang) s
z&Extension._convert_pyx_sources_to_langN)__name__
__module____qualname____doc__r r r r r r
r s r c @ s e Zd ZdZdS )Libraryz=Just like a regular Extension, but built as a library insteadN)r r r r! r r r r
r" 8 s r" )r r Zdistutils.coreZ distutilsZdistutils.errorsZdistutils.extensionZsetuptools.extern.six.movesr Zmonkeyr r Z
have_pyrexZcorer r r" r r r r