Repository URL to install this package:
|
Version:
1.0.9-1 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
setuptools
/
__pycache__
/
extension.cpython-37.pyc
|
|---|
B
MÂûaã @ 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 ú</tmp/pip-install-uemy4v8i/setuptools/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| ||f|| 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 ÚlanguageÚlowerÚ functoolsÚpartialÚreÚsubÚlistr r )r ÚlangZ
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 Údistutils.coreÚ distutilsZdistutils.errorsÚdistutils.extensionZsetuptools.extern.six.movesr Zmonkeyr r Z
have_pyrexÚcorer r r$ r r r r
Ú<module> s