Your IP : 18.223.172.243


Current Path : /opt/alt/python310/lib64/python3.10/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/distutils/__pycache__/extension.cpython-310.opt-2.pyc

o

6��f!)�@s4	ddlZddlZddlZGdd�d�Zdd�ZdS)�Nc@s<eZdZ															ddd�Zdd�ZdS)�	ExtensionNcKst|t�s	td��t|t�rtdd�|D��std��||_||_|p$g|_|p)g|_|p.g|_	|p3g|_
|p8g|_|p=g|_|	pBg|_
|
pGg|_|pLg|_|pQg|_|
pVg|_|p[g|_||_||_t|�dkr�dd�|D�}d�t|��}d	|}t�|�dSdS)
Nz'name' must be a stringcss�|]}t|t�VqdS)N)�
isinstance�str)�.0�v�r�:/opt/alt/python310/lib64/python3.10/distutils/extension.py�	<genexpr>ks�z%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__Ws8

�











�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$C
�/rcCs�	ddlm}m}m}ddlm}ddlm}||�}||dddddd�}�z-g}	|��}	|	dur4�nt	�
||	�r;q)|	d|	dkrId	krSnn|�d
|	�q)||	|�}	||	�}
|
d}t|g�}d}
|
dd�D]�}|
dur{|
�
|�d}
qmtj�|�d}|dd�}|dd�}|dvr�|j�
|�qm|d
kr�|j�
|�qm|dkr�|�d�}|dkr�|j�
|df�qm|j�
|d|�||dd�f�qm|dkr�|j�
|�qm|dkr�|j�
|�qm|dkr�|j�
|�qm|dkr�|j�
|�qm|dk�r|j�
|�qm|dk�r|j}
qm|dk�r|j}
qm|dk�r!|j}
qm|dk�r3|j�
|�|�s2|j}
qm|dv�r?|j�
|�qm|�d|�qm|�
|�q*W|��|S|��w)Nr)�parse_makefile�expand_makefile_vars�_variable_rx)�TextFile)�split_quoted�)Zstrip_commentsZskip_blanksZ
join_linesZ	lstrip_wsZ	rstrip_wsT����*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�readline�re�matchr#r�append�os�path�splitextrr�findrrrrrrrr�close)�filenamer.r/r0r1r2�vars�file�
extensions�lineZwords�moduleZextZappend_next_wordZword�suffixZswitch�valueZequalsrrr�read_setup_file�s�� 



�




�

�K
�rI)r<r9r"rrIrrrr�<module>sz

?>