Your IP : 18.118.137.13
3
��2a) � @ s* d dl Z d dlZG dd� d�Zdd� ZdS )� Nc @ s e Zd Zddd�Zdd� ZdS )� ExtensionNc K s t |t�std��t |t�o,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 �}djt|��}d | }tj|� d S )
Nz'name' must be a stringc s s | ]}t |t�V qd S )N)�
isinstance�str)�.0�v� r �./opt/alt/python36/lib64/python3.6/extension.py� <genexpr>j s z%Extension.__init__.<locals>.<genexpr>z#'sources' must be a list of stringsr c S s g | ]}t |��qS r )�repr)r �optionr r r �
<listcomp>� s z&Extension.__init__.<locals>.<listcomp>z, zUnknown Extension options: %s)r r �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)�selfr r r r r r r r r r r r r r r r �kw�options�msgr r r �__init__V s4
zExtension.__init__c C s d| j j| j j| jt| �f S )Nz<%s.%s(%r) at %#x>)� __class__�
__module__�__qualname__r �id)r% r r r �__repr__� s
zExtension.__repr__)NNNNNNNNNNNNNN)�__name__r+ r, r) r. r r r r r s D
!r c C s� ddl m}m}m} ddlm} ddlm} || �}|| dddddd�}�zhg }�x\|j� } | d krfP |j | �rrqT| d | d# ko�dkn r�|j
d| � qT|| |�} || �}
|
d }t|g �}d }
�x�|
dd � D �]�}|
d k r�|
j|� d }
q�t
jj|�d }|dd � }|d d � }|d$k�r8|jj|� q�|dk�rP|jj|� q�|dk�r�|jd�}|d%k�r�|jj|d f� n$|jj|d|� ||d d � f� q�|dk�r�|jj|� q�|dk�r�|jj|� q�|dk�r�|jj|� q�|dk�r|jj|� q�|dk�r|jj|� q�|dk�r0|j}
q�|dk�rB|j}
q�|dk�rT|j}
q�|dk�rx|jj|� |�s�|j}
q�|d&k�r�|jj|� q�|j
d"| � q�W |j|� qTW W d |j� 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� �.c�.cc�.cpp�.cxx�.c++�.m�.mmz-Iz-D�=z-Uz-Cz-lz-Lz-Rz-rpathz-Xlinkerz
-Xcompilerz-u�.a�.so�.sl�.o�.dylibzunrecognized argument '%s'���)r8 r9 r: r; r<