zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
U
G=®dÁã@s|ddlZddlZddlZddlZddlZddlmZddlm    Z    dd„Z
e
Z e    ej j ƒZGdd„deƒZ Gd    d
„d
e ƒZdS) éN)Úmapé)Ú get_unpatchedcCs4d}zt|dgdjWdStk
r.YnXdS)z0
    Return True if Cython can be imported.
    zCython.Distutils.build_extÚ    build_ext)ÚfromlistTF)Ú
__import__rÚ    Exception)Z cython_impl©r    úKD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\setuptools/extension.pyÚ _have_cython sr c@s eZdZdZdd„Zdd„ZdS)Ú    Extensionz7Extension that uses '.c' files in place of '.pyx' filescOs(| dd¡|_tj|||f|ž|ŽdS)NÚpy_limited_apiF)Úpopr Ú
_ExtensionÚ__init__)ÚselfÚnameÚsourcesÚargsÚkwr    r    r
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 ÚlanguageÚlowerÚ    functoolsÚpartialÚreÚsubÚlistrr)rÚlangZ
target_extrr    r    r
Ú_convert_pyx_sources_to_lang)s 
z&Extension._convert_pyx_sources_to_langN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrr    r    r    r
r  sr c@seZdZdZdS)ÚLibraryz=Just like a regular Extension, but built as a library insteadN)r r!r"r#r    r    r    r
r$8sr$)rrÚdistutils.coreÚ    distutilsÚdistutils.errorsÚdistutils.extensionZsetuptools.extern.six.movesrZmonkeyrr Z
have_pyrexÚcorer rr$r    r    r    r
Ú<module>s