AlkantarClanX12

Your IP : 3.142.54.136


Current Path : /opt/alt/python38/lib64/python3.8/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/distutils/__pycache__/extension.cpython-38.opt-2.pyc

U

i�f)�@s*ddlZddlZGdd�d�Zdd�ZdS)�Nc@seZdZddd�Zdd�ZdS)�	ExtensionNcKst|t�std��t|t�r.tdd�|D��s6td��||_||_|pHg|_|pRg|_|p\g|_	|pfg|_
|ppg|_|pzg|_|	p�g|_
|
p�g|_|p�g|_|p�g|_|
p�g|_|p�g|_||_||_t|�dk�rdd�|D�}d�t|��}d	|}t�|�dS)
Nz'name' must be a stringcss|]}t|t�VqdS)N)�
isinstance�str)�.0�v�r�8/opt/alt/python38/lib64/python3.8/distutils/extension.py�	<genexpr>jsz%Extension.__init__.<locals>.<genexpr>z#'sources' must be a list of stringsrcSsg|]}t|��qSr)�repr)rZoptionrrr�
<listcomp>�sz&Extension.__init__.<locals>.<listcomp>z, zUnknown Extension options: %s)rr�AssertionError�list�all�name�sources�include_dirs�
define_macros�undef_macros�library_dirs�	libraries�runtime_library_dirs�
extra_objects�extra_compile_args�extra_link_args�export_symbols�	swig_opts�depends�language�optional�len�join�sorted�warnings�warn)�selfrrrrrrrrrrrrrrrr�kwZoptions�msgrrr�__init__Vs6

�











zExtension.__init__cCsd|jj|jj|jt|�fS)Nz<%s.%s(%r) at %#x>)�	__class__�
__module__�__qualname__r�id)r$rrr�__repr__�s�zExtension.__repr__)NNNNNNNNNNNNNN)�__name__r)r*r'r,rrrrrs D�
/rcCs�ddlm}m}m}ddlm}ddlm}||�}||dddddd�}�z^g}|�	�}	|	dkrd�q�|�
|	�rpqP|	d|	dkr�dkr�nn|�d	|	�qP||	|�}	||	�}
|
d}t|g�}d}
|
dd�D�]�}|
dk	r�|
�
|�d}
q�tj�|�d}|dd
�}|d
d�}|dk�r2|j�
|�q�|dk�rJ|j�
|�q�|d
k�r�|�d�}|dk�rz|j�
|df�n$|j�
|d|�||d
d�f�q�|dk�r�|j�
|�q�|dk�r�|j�
|�q�|dk�r�|j�
|�q�|dk�r|j�
|�q�|dk�r|j�
|�q�|dk�r*|j}
q�|dk�r<|j}
q�|dk�rN|j}
q�|dk�rr|j�
|�|�s�|j}
q�|dk�r�|j�
|�q�|�d|�q�|�
|�qPW5|��X|S)Nr)�parse_makefile�expand_makefile_vars�_variable_rx)�TextFile)�split_quoted�)Zstrip_commentsZskip_blanksZ
join_linesZ	lstrip_wsZ	rstrip_ws����*z'%s' lines not handled yet�)z.cz.ccz.cppz.cxxz.c++z.mz.mmz-Iz-D�=z-Uz-Cz-lz-Lz-Rz-rpathz-Xlinkerz
-Xcompilerz-u)z.az.soz.slz.oz.dylibzunrecognized argument '%s')Zdistutils.sysconfigr.r/r0Zdistutils.text_filer1Zdistutils.utilr2�close�readline�matchr#r�append�os�path�splitextrr�findrrrrrrrr)�filenamer.r/r0r1r2�vars�file�
extensions�lineZwords�moduleZextZappend_next_wordZword�suffixZswitch�valueZequalsrrr�read_setup_file�s��
 







�










rH)r<r"rrHrrrr�<module>sz