Current Dir: /snap/core22/2955/usr/lib/python3/dist-packages/setuptools/__pycache__/
[FILE] archive_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_meta.cpython-310.pyc [ edit | delete | rename ]
[FILE] config.cpython-310.pyc [ edit | delete | rename ]
[FILE] depends.cpython-310.pyc [ edit | delete | rename ]
[FILE] dep_util.cpython-310.pyc [ edit | delete | rename ]
[FILE] dist.cpython-310.pyc [ edit | delete | rename ]
[FILE] errors.cpython-310.pyc [ edit | delete | rename ]
[FILE] extension.cpython-310.pyc [ edit | delete | rename ]
[FILE] glob.cpython-310.pyc [ edit | delete | rename ]
[FILE] installer.cpython-310.pyc [ edit | delete | rename ]
[FILE] launch.cpython-310.pyc [ edit | delete | rename ]
[FILE] monkey.cpython-310.pyc [ edit | delete | rename ]
[FILE] msvc.cpython-310.pyc [ edit | delete | rename ]
[FILE] namespaces.cpython-310.pyc [ edit | delete | rename ]
[FILE] package_index.cpython-310.pyc [ edit | delete | rename ]
[FILE] py34compat.cpython-310.pyc [ edit | delete | rename ]
[FILE] sandbox.cpython-310.pyc [ edit | delete | rename ]
[FILE] unicode_utils.cpython-310.pyc [ edit | delete | rename ]
[FILE] version.cpython-310.pyc [ edit | delete | rename ]
[FILE] wheel.cpython-310.pyc [ edit | delete | rename ]
[FILE] windows_support.cpython-310.pyc [ edit | delete | rename ]
[FILE] _deprecation_warning.cpython-310.pyc [ edit | delete | rename ]
[FILE] _imp.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]
Viewing: /snap/core22/2955/usr/lib/python3/dist-packages/setuptools/__pycache__/extension.cpython-310.pyc
o
�_�a� � @ 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 s0 d} zt | dgd�j W dS ty Y dS w )z0
Return True if Cython can be imported.
zCython.Distutils.build_ext� build_ext)�fromlistTF)�
__import__r � Exception)�cython_impl� r �6/usr/lib/python3/dist-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 � rdS | jp d}|�� dkrdnd}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�list�mapr )r �lang�
target_extr r r r
�_convert_pyx_sources_to_lang'