Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
setuptools_ext.cpython-313.pyc71 linesDownload Raw Back to __pycache__
1�

2��j�$��h�SSKrSSKrSSKr\ SrSrSrSr	Sr3SrSrg!\a \rN f=f)	�Nc��SSKJn U"U5e)Nr)�DistutilsSetupError)�cffi._shimmed_dist_utilsr)�msgrs  �YD:\code\apps\devtools\python\user_packages\Python313\site-packages\cffi/setuptools_ext.py�errorrs��<�4�c�5"�"�c��[U5nUR5nSSS5 WS-
n[X0S5n[XAU5 g!,(df   N,=f)N�6�exec)�open�read�compiler)�filename�glob�f�src�codes     r�execfilersD��7�h��1��f�f�h��8��4�K�C��3�&�)�D���T��	9��s�A�10Ac��SSKJn [U[5(d"[	S[U5R<35 [U5nURS5up4[RRW5(dZSnURSS5S	-n[RRU5(a
S11US-W-<S3n[	U<SU<35 S
US.n[X75 UWn[WU5(dU"5n[X�5(d&[	U<S[U5R<S35 [!US5(d[	U<S35 UR"up�p�UR$(a!UR'5nUR)U5 U12c
[+XU	5 g[-XX�X�5 g![a [	U<S35 GN}f=f![a [	U<SW<S35 GN
f=f)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�13isinstance�14basestringr�typer�str�split�15ValueError�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�16�+�+�
���>�2�2�5�	6��8�}�H��(0���s�(;�%���7�7�>�>�/�*�*���#�+�+�C��5��=�	�
�7�7�>�>�)�$�$��C��,�.�1�C�
���L�M�&�O�D�H��_�'�D��|�$���c�3����e���c���
�h�6:�3�i�6H�6H�J�	K��3�*�+�+�
�h�H�I�25�2F�2F�/�K�)�17����y�y�{���"�"�4�(�
�~��t�+�.��d��6F�M��E��
���	��� �D�
�X�5A�C�	D�D�s$�18F>�,G�>G�G�G?�>G?c��SSKJn SSKJn SU;a][	[19S5(dHUR(a7SSKn[URRS5S5nUS:�aS	US'[R"S205(a,URS5(aURS5 SUS'URS5SLa!UR!S
/5R#S5 U$![a S	US'N�f=f)a21Add py_limited_api to kwds if setuptools >= 26 is in use.22Do not alter the setting if it already exists.23Setuptools takes care of ignoring the flag on Python 2 and PyPy.24 25CPython itself should ignore the flag in a debugging version26(by not listing .abi3.so in the extensions it supports), but27it doesn't so far, creating troubles.  That's why we check28for "not hasattr(sys, 'gettotalrefcount')" (the 2.7 compatible equivalent29of 'd' not in sys.abiflags). (http://bugs.python.org/issue28401)30 31On Windows, with CPython <= 3.4, it's better not to use py_limited_api32because virtualenv *still* doesn't copy PYTHON3.DLL on these versions.33Recently (2020) we started shipping only >= 3.5 wheels, though.  So34we'll give it another try and set py_limited_api on Windows >= 3.5.35r)�log��36recompiler�py_limited_api�gettotalrefcountNr�T�Py_GIL_DISABLEDz5Ignoring py_limited_api=True for free-threaded build.F�
define_macros)�_CFFI_NO_LIMITED_APIN)rrB�cffirDr.�sys�USE_LIMITED_API�37setuptools�int�__version__�	partitionr(�	sysconfig�get_config_var�get�info�38setdefault�append)�	Extensionr?rBrDrN�setuptools_major_versions      r�_set_py_limited_apirZJs���"-����$�W�S�:L�-M�-M��*�*��	*�'*�:�+A�+A�+K�+K�C�+P�QR�+S�'T�$�'�2�-�)-��%�&���� 1�2�2��8�8�$�%�%��H�H�L�M�!&��
���x�x� �!�U�*�	
�����,�3�3�4R�S��K��!�	*�&*�D�!�"�		*�s�2C.�.D�?Dc	�^^^^^39^^^
^^�SSKJn SSKJnJmJm SSKJm S/nURURS/55 [Xu5nU"STUS.UD6mS
UUUUUUUU4Sjjm
URc/UlURRT5 URRS	U5m40"U41UU
4S42jST435n	X�RS	'g)Nr��	build_ext)rXrB�mkpathrC�$PLACEHOLDER�sources)�namer`c��>�[RRUTT-5nTRSU-5 T"U5 Ub	U"TT5 T	R	TTT44U5nU(dTRS5 U$�Nzgenerating cffi module %rzalready up-to-date)r)r*�joinrU�
make_c_source)�tmpdir�pre_run�c_file�updatedr8r;rBr^r<rDr=r>s    ��������r�make_mod�_add_c_module.<locals>.make_mod�ss��������f�k�4D�&D�E�����,�v�5�6��v��45���C����*�*�3��V�V�L����H�H�)�*��
r	r]c�&>�\rSrSrUUU4SjrSrg)�)_add_c_module.<locals>.build_ext_make_mod�c�>�TRSS:Xa-[USS5nT"URU5TRS'TRU5 g)Nrr_rg)r`�getattr�46build_temp�run)�selfrg�47base_classr8rjs  ���rrr�-_add_c_module.<locals>.build_ext_make_mod.run�sE����{�{�1�~��/�!�$�	�4�8��!)�$�/�/�7�!C����A���N�N�4� r	�N�r�48__module__�__qualname__�__firstlineno__rr�__static_attributes__)rtr8rjs���r�build_ext_make_modrm�s
���	!�	!r	r|rv�N)�setuptools.command.build_extr]rrXrBr^rKrD�extend�poprZ�ext_modulesrW�cmdclassrT)r4r;r<r=r>r?r]rX�49allsourcesr|rtr8rBrjr^rDs ````     @@@@@@rr3r3ws�����6�?�?�� �!�J����d�h�h�y�"�-�.��y�/�D�50�51A��j�52A�D�53A�C�
�
�������������C� ����"�"�;�	�:�J�!�!�Z�!�"4�M�M�+�r	c�^^^^^	^54^^�SSKJn SSKJn SSKJm55Jm SSKJm UU56UUU4Sjm	URRSU5m"UU	U4SjS	T5nXPRS'URc/UlURRT5 URRS57U5m"UU	U4SjST5nX`RS58'g)
Nr)�build_pyr\)rBr^rCc��>�TRSU-5 T"[RRU55 TR	TTU5nU(dTRS5 ggrc)rUr)r*�dirname�make_py_source)�py_filerir;rBr^r<rDs  �����r�generate_mod�$_add_py_module.<locals>.generate_mod�sS������,�w�6�7��r�w�w���w�'�(��+�+�C��g�F����H�H�)�*�r	r�c�4>�\rSrSrUUU4SjrUU4SjrSrg)�)_add_py_module.<locals>.build_py_make_mod�c��>�TRU5 TRS5nUS==S-
ss'T"[RR"UR59/UQ765 g)Nr�����r)rrr'r)r*rd�	build_lib)rs�module_pathrtr�r<s  ���rrr�-_add_py_module.<locals>.build_py_make_mod.run�sK����N�N�4� �%�+�+�C�0�K���O�u�$�O�������d�n�n�C�{�C�Dr	c�>�URnU(a UVs/sH
nUT:wdMUPM snUlTRU5Xl$s snf!Xlf=fr})�60py_modules�get_source_files)rs�saved_py_modules�mrtr<s   ��rr��:_add_py_module.<locals>.build_py_make_mod.get_source_files�s_��� $����
3�#�2B�'>�2B�Q�,-��,<�()�2B�'>�D�O�!�2�2�4�8�"2���	'>��#3��s �A�61A
�A
�A�
A�A)r�N)rrxryrzrrr�r{)rtr�r<s���r�build_py_make_modr��s���	E�62 63	3�64	3r	r�r]c�&>�\rSrSrUUU4SjrSrg)�*_add_py_module.<locals>.build_ext_make_mod��c�4>�TRU5 UR(auTRS5nSRUSS5nUR	S5nURU5nUSS-nT"[RRXE55 gg)Nrr�r�r)rr�inplacer'rd�get_finalized_command�get_package_dirr)r*)	rsr��packager��package_dir�	file_name�base_class_2r�r<s	      ���rrr�._add_py_module.<locals>.build_ext_make_mod.run�s�������T�"��|�|�)�/�/��4���(�(�;�s��#3�4���5�5�j�A��&�6�6�w�?��'��O�e�3�	��R�W�W�\�\�+�A�B�r	rvNrw)r�r�r<s���rr|r��s���		C�		Cr	r|)
�setuptools.command.build_pyr�r~r]rrBr^rKrDr�rTr�rW)
r4r;r<r�r]r�r|rtr�r�rBr^rDs
 ``    @@@@@@rr2r2�s����4�6�4��+�+����"�"�:�x�8�J�3�3�J�3�"!2�M�M�*����������O�O���;�'��=�=�$�$�[�)�<�L�65C�66C�\�67C�"4�M�M�+�r	c�l�US:Xde[U[5(aU/nUHn[X5 M g)N�cffi_modules)r#r$r@)r4�attr�value�cffi_modules    rr�r��s6���>�!�!�!��%��$�$��������*�r	)
r)rLrRr$�	NameErrorr&rrr@rZr3r2r�rvr	r�<module>r�sU��	�68����69#�70 71�+N�Z+�Z%4�X:4�x+��q���J��s�&�1�1
codekingpro/portable-devtools · Team Ai