AlkantarClanX12

Your IP : 18.219.25.226


Current Path : /opt/alt/python35/lib64/python3.5/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/distutils/__pycache__/extension.cpython-35.opt-2.pyc



���])�@sGddlZddlZddlZGdd�d�Zdd�ZdS)�Nc@sReZdZdddddddddddddddd�Zdd�ZdS)�	ExtensionNcKs|t|t�std��t|t�o@tdd�|D��sOtd��||_||_|pjg|_|pyg|_|p�g|_	|p�g|_
|p�g|_|p�g|_|	p�g|_
|
p�g|_|p�g|_|p�g|_|
pg|_|pg|_||_||_t|�dkrxdd�|D�}djt|��}d	|}tj|�dS)
Nz'name' must be a stringcss|]}t|t�VqdS)N)�
isinstance�str)�.0�v�r�./opt/alt/python35/lib64/python3.5/extension.py�	<genexpr>ksz%Extension.__init__.<locals>.<genexpr>z#'sources' must be a list of stringsrcSsg|]}t|��qSr)�repr)r�optionrrr�
<listcomp>�s	z&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�kw�options�msgrrr�__init__Ws4				
zExtension.__init__cCs)d|jj|jj|jt|�fS)Nz<%s.%s(%r) at %#x>)�	__class__�
__module__�__qualname__r�id)r%rrr�__repr__�s
		zExtension.__repr__)�__name__r+r,r)r.rrrrrsD!rcCs�ddlm}m}m}ddlm}ddlm}||�}||ddddddd	dd
d�}zg}x|j�}	|	dkr�P|j	|	�r�q~|	d|	d'ko�dknr�|j
d|	�q~||	|�}	||	�}
|
d}t|g�}d}
x`|
dd�D]N}|
dk	rT|
j|�d}
q,t
jj|�d}|dd
�}|d
d�}|d(kr�|jj|�q,|dkr�|jj|�q,|dkr9|jd�}|d)kr|jj|df�qz|jj|d|�||d
d�f�q,|dkrX|jj|�q,|dkrw|jj|�q,|dkr�|jj|�q,|dkr�|jj|�q,|dkr�|jj|�q,|dkr�|j}
q,|dkr|j}
q,|dkr|j}
q,|d krJ|jj|�|sz|j}
q,|d*kri|jj|�q,|j
d&|�q,W|j|�q~WWd|j�X|S)+Nr)�parse_makefile�expand_makefile_vars�_variable_rx)�TextFile)�split_quotedZstrip_comments�Zskip_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'���)r8r9r:r;r<r=r>rE)r@rArBrCrD)Zdistutils.sysconfigr0r1r2Zdistutils.text_filer3Zdistutils.utilr4�readline�matchr$r�append�os�path�splitextrr�findrrrrrrrr�close)�filenamer0r1r2r3r4�vars�file�
extensions�lineZwords�module�extZappend_next_wordZword�suffixZswitch�valueZequalsrrr�read_setup_file�s�	$

rW)rI�sysr#rrWrrrr�<module>sz