????

Your IP : 3.147.70.194


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/cffi/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/cffi/__pycache__/setuptools_ext.cpython-311.pyc

�

�܋f�"��b�ddlZddlZ	en
#e$reZYnwxYwd�Zd�Zd�Zd�Zd�Z	d�Z
d�ZdS)	�Nc�$�ddlm}||���)Nr)�DistutilsSetupError)�distutils.errorsr)�msgrs  �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/cffi/setuptools_ext.py�errorr
s%��4�4�4�4�4�4�
�
�c�
"�
"�"�c���t|��5}|���}ddd��n#1swxYwY|dz
}t||d��}t|||��dS)N�
�exec)�open�read�compiler)�filename�glob�f�src�codes     r�execfilers���
�h����1��f�f�h�h���������������������4�K�C��3��&�)�)�D���t�T�����s�1�5�5c�D�ddlm}t|t��s$t	dt|��j����t|��}	|�d��\}}n"#t$rt	|�d���YnwxYwtj�|��sZd}|�
dd��d	z}tj�|��rd
|dz|z�d�}t	|�d|����d
|d�}t||��	||}n%#t$rt	|�d|�d���YnwxYwt||��s
|��}t||��s't	|�dt|��j�d���t!|d��st	|�d���|j\}	}
}}|jr)|���}|�|��|
�t+|||	��dSt-|||	|
||��dS)Nr)�FFIzCargument to 'cffi_modules=...' must be a str or a list of str, not �:z1 must be of the form 'path/build.py:ffi_variable'��.�/�.pyz (rewrite cffi_modules to [z])z does not name an existing file�__cffi__)�__name__�__file__z	: object z not found in modulez is not an FFI instance (got �)�_assigned_sourcez(: the set_source() method was not called)�cffi.apir�
isinstance�
basestringr�typer�str�split�
ValueError�os�path�exists�replacer�KeyError�hasattrr!�_windows_unicode�copy�_apply_windows_unicode�_add_py_module�
_add_c_module)
�dist�mod_specr�build_file_name�ffi_var_name�ext�	rewritten�mod_vars�ffi�module_name�source�source_extension�kwdss
             r�add_cffi_moduler@s����������h�
�+�+�6�
����>�>�2�2�5�	6�	6�	6��8�}�}�H��(0���s�(;�(;�%���������
��x�x��	�	�	�	�	������7�>�>�/�*�*�N���#�+�+�C��5�5��=�	�
�7�>�>�)�$�$�	1�	1��C��,�.�.�.�1�C�
������L�M�M�M�&�O�D�D�H��_�h�'�'�'�D��|�$�����D�D�D�
�X�X�X�5A�\�\�C�	D�	D�	D�	D�	D�D�����c�3�����c�e�e���c�3���K�
�h�h�h�6:�3�i�i�6H�6H�6H�J�	K�	K�	K��3�*�+�+�J�
�h�h�h�H�I�I�I�25�2F�/�K��)�4�
��)��y�y�{�{���"�"�4�(�(�(�
�~��t�S�+�.�.�.�.�.��d�C��f�6F��M�M�M�M�Ms$�A)�)B�B�D#�#E�Ec��ddlm}d|vrottd��sZ|jrSddl}	t
|j�d��d��}|dkrd|d<n#t$rd|d<YnwxYw|S)	a7
    Add py_limited_api to kwds if setuptools >= 26 is in use.
    Do not alter the setting if it already exists.
    Setuptools takes care of ignoring the flag on Python 2 and PyPy.

    CPython itself should ignore the flag in a debugging version
    (by not listing .abi3.so in the extensions it supports), but
    it doesn't so far, creating troubles.  That's why we check
    for "not hasattr(sys, 'gettotalrefcount')" (the 2.7 compatible equivalent
    of 'd' not in sys.abiflags). (http://bugs.python.org/issue28401)

    On Windows, with CPython <= 3.4, it's better not to use py_limited_api
    because virtualenv *still* doesn't copy PYTHON3.DLL on these versions.
    Recently (2020) we started shipping only >= 3.5 wheels, though.  So
    we'll give it another try and set py_limited_api on Windows >= 3.5.
    r��
recompiler�py_limited_api�gettotalrefcountNr�T)
�cffirCr.�sys�USE_LIMITED_API�
setuptools�int�__version__�	partitionr()�	Extensionr?rCrJ�setuptools_major_versions     r�_set_py_limited_apirPIs���" ��������$�$�W�S�:L�-M�-M�$��*�	%�����	*�'*�:�+A�+K�+K�C�+P�+P�QR�+S�'T�'T�$�'�2�-�-�)-��%�&����	*�	*�	*�&*�D�!�"�"�"�		*����
�Ks�8A%�%A7�6A7c	������
���
���ddlm}ddlm}ddlm�ddlm�ddlm	�dg}|�
|�dg����t||��}|d�|d	�|���d��������fd
�	�
|j
�g|_
|j
����|j�d|���
G�
��
fd�d
�
��}	|	|jd<dS)Nr)rN��	build_ext��mkpath��logrB�$PLACEHOLDER�sources)�namerYc���tj�|��z��}��d|z���|��|�|�����	����
|��}|s��d��|S�Nzgenerating cffi module %rzalready up-to-date)r)r*�join�info�
make_c_source)�tmpdir�pre_run�c_file�updatedr8r;rWrUr<rCr=r>s    ��������r�make_modz_add_c_module.<locals>.make_modws��������f�k�4D�&D�E�E�����,�v�5�6�6�6���v����
���G�C������*�*�3��V�V�L�L���	+��H�H�)�*�*�*��
r	rSc���eZdZ���fd�ZdS)�)_add_c_module.<locals>.build_ext_make_modc����jddkr*t|dd��}�|j|���jd<��|��dS)NrrXra)rY�getattr�
build_temp�run)�selfra�
base_classr8rds  ���rrjz-_add_c_module.<locals>.build_ext_make_mod.run�sV����{�1�~��/�/�!�$�	�4�8�8��!)��$�/�7�!C�!C���A���N�N�4� � � � � r	N�r�
__module__�__qualname__rj)rlr8rds���r�build_ext_make_modrf�s8�������	!�	!�	!�	!�	!�	!�	!�	!�	!r	rp�)N)�distutils.corerN�setuptools.command.build_extrS�distutils.dir_utilrU�	distutilsrWrGrC�extend�poprP�ext_modules�append�cmdclass�get)r4r;r<r=r>r?rNrS�
allsourcesrprlr8rWrdrUrCs ````     @@@@@@rr3r3js�������������(�(�(�(�(�(�6�6�6�6�6�6�)�)�)�)�)�)������������� �!�J����d�h�h�y�"�-�-�.�.�.��y�$�/�/�D�
�)�
A��j�
A�
A�D�
A�
A�C�
�
�
�
�
�
�
�
�
�
�
�
�
�����������C� � � ���"�"�;�	�:�:�J�!�!�!�!�!�!�!�!�!�Z�!�!�!�"4�D�M�+���r	c������	�
���ddlm�ddlm}ddlm}ddlm�
ddlm	���
���fd��	|j
�d|���G��	�fd	�d
���}||j
d<|j�g|_|j�
���|j
�d|���G��	�fd�d
���}||j
d<dS)NrrT)�build_pyrRrVrBc������d|z���tj�|��������|��}|s��d��dSdSr\)r^r)r*�dirname�make_py_source)�py_filercr;rWrUr<rCs  �����r�generate_modz$_add_py_module.<locals>.generate_mod�s{������,�w�6�7�7�7���r�w���w�'�'�(�(�(��+�+�C��g�F�F���	+��H�H�)�*�*�*�*�*�	+�	+r	r~c�*��eZdZ���fd�Z��fd�ZdS)�)_add_py_module.<locals>.build_py_make_modc������|����d��}|dxxdz
cc<�tjj|jg|�R���dS)Nr���r)rjr'r)r*r]�	build_lib)rk�module_pathrlr�r<s  ���rrjz-_add_py_module.<locals>.build_py_make_mod.run�sj����N�N�4� � � �%�+�+�C�0�0�K���O�O�O�u�$�O�O�O��L����d�n�C�{�C�C�C�D�D�D�D�Dr	c���|j}	|r�fd�|D��|_��|��||_S#||_wxYw)Nc� ��g|]
}|�k�|��Srqrq)�.0�mr<s  �r�
<listcomp>zN_add_py_module.<locals>.build_py_make_mod.get_source_files.<locals>.<listcomp>�s-���'>�'>�'>�Q�,-��,<�,<�()�,<�,<�,<r	)�
py_modules�get_source_files)rk�saved_py_modulesrlr<s  ��rr�z:_add_py_module.<locals>.build_py_make_mod.get_source_files�sr��� $���
3�#�>�'>�'>�'>�'>�2B�'>�'>�'>�D�O�!�2�2�4�8�8�"2�����"2���2�2�2�2s	�);�	AN)rrnrorjr�)rlr�r<s���r�build_py_make_modr��s]�������	E�	E�	E�	E�	E�	E�	E�

	3�
	3�
	3�
	3�
	3�
	3�
	3�
	3r	r�rSc���eZdZ���fd�ZdS)�*_add_py_module.<locals>.build_ext_make_modc�d����|��|jr���d��}d�|dd���}|�d��}|�|��}|ddz}�tj�||����dSdS)Nrr�r~r)rj�inplacer'r]�get_finalized_command�get_package_dirr)r*)	rkr��packager~�package_dir�	file_name�base_class_2r�r<s	      ���rrjz._add_py_module.<locals>.build_ext_make_mod.run�s�������T�"�"�"��|�
C�)�/�/��4�4���(�(�;�s��s�#3�4�4���5�5�j�A�A��&�6�6�w�?�?��'��O�e�3�	���R�W�\�\�+�y�A�A�B�B�B�B�B�
C�
Cr	Nrm)r�r�r<s���rrpr��sA�������		C�		C�		C�		C�		C�		C�		C�		C�		Cr	rp)rtrU�setuptools.command.build_pyr~rsrSrurWrGrCrzr{r�ry)
r4r;r<r~rSr�rprlr�r�rWrUrCs
 ``    @@@@@@rr2r2�s�����������)�)�)�)�)�)�4�4�4�4�4�4�6�6�6�6�6�6�������������+�+�+�+�+�+�+�+�+���"�"�:�x�8�8�J�3�3�3�3�3�3�3�3�3�J�3�3�3�"!2�D�M�*���������O���;�'�'�'��=�$�$�[�)�<�<�L�
C�
C�
C�
C�
C�
C�
C�
C�
C�\�
C�
C�
C�"4�D�M�+���r	c�p�|dksJ�t|t��r|g}|D]}t||���dS)N�cffi_modules)r#r$r@)r4�attr�value�cffi_modules    rr�r��sX���>�!�!�!�!��%��$�$������+�+����k�*�*�*�*�+�+r	)r)rHr$�	NameErrorr&rrr@rPr3r2r�rqr	r�<module>r�s���	�	�	�	�
�
�
�
���J�J�������J�J�J�����#�#�#�

�
�
�+N�+N�+N�Z���B'4�'4�'4�\;4�;4�;4�z+�+�+�+�+s�
��