Team Ai
Datasetpublic

codekingpro/portable-devtools

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

2`jM��X�SSKJr SSKrSSKrSSKrSSKrSSKJr SSKJ	r	J3r4Jr SSKJ
r
 SSKJr SSKJrJrJrJr \"S	5rS5S/r"SS65rS
r\R0R3S5(d3\R0S:wa"SSSjjrSSSjjr\SS/-
rggg)�)�annotationsN)�CodeType)�Any�Literal�TypeVar)�Version�)�_imp)�PY_COMPILED�	PY_FROZEN�	PY_SOURCE�find_module�_T�Requirerc�h�\rSrSrSrSSSjjrSrSrS
SSjjrSSjr	SS	jr7S8rg)r�z7A prerequisite to building or installing a distributionNc��Uc	Ub[nUb
U"U5nUcSnURR[55 U?g)N�__version__)r�__dict__�update�locals�self)r�name�requested_version�module�homepage�	attribute�formats       �DD:\code\apps\devtools\python\Lib\site-packages\setuptools/depends.py�__init__�Require.__init__sJ���>�/�;��F��� &�'8� 9��� �)�	��
�
���V�X�&��I�c�j�URbURSUR3$UR$)z0Return full package/distribution name, w/version�-)rr)rs r�	full_name�Require.full_name+s4���!�!�-��i�i�[��$�"8�"8�!9�:�:��y�y�r"c��URSL=(dH URSL=(d3 [U5S:g=(a URU5UR:�$)z%Is 'version' sufficiently up-to-date?N�unknown)rr�strr)r�versions  r�9version_ok�Require.version_ok1sS��
�N�N�d�"�
?��{�{�d�"�
?��7�|�y�(�?����G�$��(>�(>�>�		10r"c�2�URc3[URU5up4nU(aUR	5 U$[URURX!5nUb"XbLaURbUR
U5$U$![a gf=f)a�Get version number of installed module, 'None', or 'default'11 12Search 'paths' for module.  If not found, return 'None'.  If found,13return the extracted version attribute, or 'default' if no version14attribute was specified, or the value cannot be determined without15importing the module.  The version is formatted according to the16requirement's version format (if any), unless it is 'None' or the17supplied 'default'.18N)rrr�ImportError�close�get_module_constantr)r�paths�default�f�_p�_i�vs       r�get_version�Require.get_version:s����>�>�!�
�'����U�;�	��r�����	��N�����T�^�^�W�L���=�Q�-�$�+�+�2I��;�;�q�>�!�����
��
�s�B	�	19B�Bc�(�URU5SL$)z/Return true if dependency is present on 'paths'N)r7)rr1s  r�20is_present�Require.is_presentWs������&�d�2�2r"c�`�URU5nUcgUR[U55$)z>Return true if dependency is present and up-to-date on 'paths'F)r7r+r))rr1r*s   r�21is_current�Require.is_current[s-���"�"�5�)���?�����s�7�|�,�,r"�)�NN)rr)�return�None)Nr()r2z_T | Literal['unknown']rAz$_T | Literal['unknown'] | None | Any�N)�__name__�22__module__�__qualname__�__firstlineno__�__doc__r r%r+r7r:r=�__static_attributes__r?r"rrrsX��A�����23��24��(�25�>G��#:��	-��:3�-r"c�v�[RS5nU(dU"5$[R"U5$)Nc3�# �Sv� g7frCr?r?r"r�empty�maybe_close.<locals>.emptyds���
��s�)�26contextlib�contextmanager�closing)r3rLs  r�maybe_closerQcs7��������
��w�����a� � r"�java�clic���[X5=upEupgp�[U5 U[:Xa(UR	S5 [27R"U5n28OsU[:Xa[R"X5n29ORU[:Xa[UR	5US5n30O,[R"XU	5n[X�S5sSSS5 $SSS5 [W31X5$![a gf=f!,(df   N*=f)z�Find 'module' by searching 'paths', and extract 'symbol'32 33Return 'None' if 'module' does not exist on 'paths', or it does not define34'symbol'.  If the module defines 'symbol' as a constant, return the35constant.  Otherwise, return 'default'.N��exec)rr.rQr�read�marshal�loadrr36�get_frozen_objectr
�compile�37get_module�getattr�extract_constant)r�symbolr2r1r3�path�_suffix�_mode�kind�info�code�importeds            rr0r0ss���	�5@��5O�O�+�A�+�g�d�38��^��{�"����q�	��|�|�A�����"��-�-�f�<����"��q�v�v�x��v�6�� �?�?�6�$�?���x��6��^�^� ��f�6�6��#�	��	���^�s�C�BC)�39C&�%C&�)40C7c��XR;ag[UR5RU5n[RSn[RSn[RSnUn[R41"U5HKnURn	URn42X�:XaU43ceURU44nM6X�:XaX�:XdX�:XaUs $UnMM g)a�Extract the constant value of 'symbol' from 'code'45 46If the name 'symbol' is bound to a constant value by the Python code47object 'code', return that value.  If 'symbol' is bound to an expression,48return 'default'.  Otherwise, return 'None'.49 50Return value is based on the first assignment to 'symbol'.  'symbol' must51be a global, or at least a non-"fast" local in the code block.  That is,52only 'STORE_NAME' and 'STORE_GLOBAL' opcodes are checked, and 'symbol'53must be present in 'code.co_names'.54N�55STORE_NAME�STORE_GLOBAL�56LOAD_CONST)	�co_names�list�index�dis�opmap�Bytecode�opcode�arg�	co_consts)rer_r2�name_idxrhrirj�const�	byte_code�oprrs           rr^r^�s������&����
�
�&�,�,�V�4���Y�Y�|�,�57��y�y��0���Y�Y�|�,�58������d�+�I��!�!�B��-�-�C�����&�����s�+����b�&6�"�:L�����,�r"r0r^)�����N)r2�_T | intrA�_T | int | None | Any)rx)rerr_r)r2ryrArz)�59__future__rrNrnrX�sys�typesr�typingrrr�packaging.versionrr@r60rrr
rr�__all__rrQ�platform�61startswithr0r^r?r"r�<module>r�s���"��62��63��(�(�%��@�@��T�]���m�64$��L-�L-�^	!��|�|���v�&�&�3�<�<�5�+@�7;�7�!)�7�	�7�>:<�&��&� #�&�.6�&�	�&�P�%�'9�:�:�G�Q,A�&r"
codekingpro/portable-devtools · Team Ai