403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pip/_internal/resolution/legacy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pip/_internal/resolution/legacy/__pycache__/resolver.cpython-312.pyc
�

�k�f^�	���dZddlZddlZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
ddlmZddlmZddlmZdd	lmZmZmZmZmZmZmZdd
lmZddlmZddl m!Z!dd
l"m#Z#ddl$m%Z%ddl&m'Z'm(Z(ddl)m*Z*ddl+m,Z,m-Z-ddl.m/Z/ddl0m1Z1ddl2m3Z3ddl4m5Z5ddl6m7Z7ddl8m9Z9ejte;�Z<eee=e
e'fZ>	ddede
e?e?e?fde@ddfd�ZAGd�de,�ZBy) ayDependency Resolution

The dependency resolution in pip is performed as follows:

for top-level requirements:
    a. only one spec allowed per project, regardless of conflicts or not.
       otherwise a "double requirement" exception is raised
    b. they override sub-dependency requirements.
for sub-dependencies
    a. "first found, wins" (where the order is breadth first)
�N)�defaultdict)�chain)�DefaultDict�Iterable�List�Optional�Set�Tuple)�
specifiers)�Requirement)�
WheelCache)�BestVersionAlreadyInstalled�DistributionNotFound�	HashError�
HashErrors�InstallationError�NoneMetadataError�UnsupportedPythonVersion)�
PackageFinder)�BaseDistribution)�Link)�Wheel)�RequirementPreparer)�InstallRequirement�check_invalid_constraint_type)�RequirementSet)�BaseResolver�InstallRequirementProvider)�compatibility_tags)�
get_supported)�direct_url_from_link)�
indent_log)�normalize_version_info)�check_requires_python�dist�version_info�ignore_requires_python�returnc���	t|j�}	t	||��}|rydjtt|��}|r#tjd|j||�ytd|j�d|�d|����#t$r}t|t|���d}~wwxYw#t
j$r+}tjd|j|�Yd}~yd}~wwxYw)	a�
    Check whether the given Python version is compatible with a distribution's
    "Requires-Python" value.

    :param version_info: A 3-tuple of ints representing the Python
        major-minor-micro version to check.
    :param ignore_requires_python: Whether to ignore the "Requires-Python"
        value if the given Python version isn't compatible.

    :raises UnsupportedPythonVersion: When the given Python version isn't
        compatible.
    N)r&z-Package %r has an invalid Requires-Python: %s�.zBIgnoring failed Requires-Python check for package %r: %s not in %rzPackage z requires a different Python: z not in )�str�requires_python�FileNotFoundErrorrr$r�InvalidSpecifier�logger�warning�raw_name�join�map�debugr)r%r&r'r,�e�
is_compatible�exc�versions        �JC:\Python312\Lib\site-packages\pip/_internal/resolution/legacy/resolver.py�_check_dist_requires_pythonr:7s���(.��d�2�2�3��	�-��%�
�
����h�h�s�3��-�.�G�����P��M�M���		
�	�
"�
�4�=�=�#�#A��)�8�O�.�	0����5�.���c�!�f�-�-��.���&�&�����;�T�]�]�C�	
�	��	�s.�B
�
B0�
	B-�B(�(B-�0C.�!C)�)C.c�v��eZdZdZhd�Z	d%dededeede	de
d	e
d
e
de
de
d
edeee
dfddf�fd�
Zdeede
defd�Z		d&dededeedeeedeeeeeff
d�Zdede
fd�Zdeddfd�Zdedeefd�Zdedeefd�Zdeddfd �Zdedefd!�Zdededeefd"�Zd#edeefd$�Z�xZS)'�Resolverz�Resolves which packages need to be installed/uninstalled to perform     the requested operation without breaking the requirements of any package.
    >�eager�only-if-needed�to-satisfy-onlyN�preparer�finder�wheel_cache�make_install_req�
use_user_site�ignore_dependencies�ignore_installedr'�force_reinstall�upgrade_strategy�py_version_info.r(c�F��t�|��|
|jvsJ�|�tjdd}nt|�}||_||_||_||_	|
|_
|	|_||_||_
||_||_||_t#t$�|_y)N�)�super�__init__�_allowed_strategies�sysr&r#�_py_version_infor@rArBrHrGrErFr'rD�_make_install_reqr�list�_discovered_dependencies)
�selfr@rArBrCrDrErFr'rGrHrI�	__class__s
            �r9rMzResolver.__init__ts����	�����4�#;�#;�;�;�;��"�!�.�.�r��2�O�4�_�E�O� /��� ��
����&��� 0���.���#6�� � 0���&<��#�*���!1���@K�D�@Q��%��	root_reqs�check_supported_wheelsc�t�t|��}|D]+}|jrt|�|j||��-g}t	�}t|j|�D]$}	|j|j||���&|r|�|S#t$r"}||_
|j|�Yd}~�Sd}~wwxYw)a�Resolve what operations need to be done

        As a side-effect of this method, the packages (and their dependencies)
        are downloaded, unpacked and prepared for installation. This
        preparation is done by ``pip.operations.prepare``.

        Once PyPI has static dependency metadata available, it would be
        possible to move the preparation to become a step separated from
        dependency resolution.
        )rXN)r�
constraintr�_add_requirement_to_setrr�all_requirements�extend�_resolve_oner�req�append)rTrWrX�requirement_setr_�discovered_reqs�hash_errorsr7s        r9�resolvezResolver.resolve�s���)�@V�W���	?�C��~�~�-�c�2��(�(��#�>�	?�57�� �l����9�9�?�K�	(�C�
(��&�&�t�'8�'8��#�'N�O�	(��������
(�����"�"�3�'�'��
(�s�#!B�	B7�B2�2B7ra�install_req�parent_req_name�extras_requestedc	���|j|�s/tjd|j|j�gdfS|j
r~|j
jrht|j
j�}tj�}|jr)|j|�st|j�d���|jr	|�Jd��|js|j|�|gdfS	|j!|j�}|duxrw|xrs|j$xrd|j&|j&k(xrI|j(xr;|j(xr-|j(j*|j(j*k7}|rtd|�d|�d|j�d���|s|j-|�|g|fS|j$s|j$sg|fS|j
xr<|j
xr-|j
j.|j
j.k(}	|	rtd	|j�d
���d|_|jrd|_t1t3t5|j&�t5|j&�z��|_tj7d
||j&�|g|fS#t"$rd}Y���wxYw)a&Add install_req as a requirement to install.

        :param parent_req_name: The name of the requirement that needed this
            added. The name is used because when multiple unnamed requirements
            resolve to the same name, we could otherwise end up with dependency
            links that point outside the Requirements set. parent_req must
            already be added. Note that None implies that this is a user
            supplied requirement, vs an inferred one.
        :param extras_requested: an iterable of extras used to evaluate the
            environment markers.
        :return: Additional requirements to scan. That is either [] if
            the requirement is not applicable, or [install_req] if the
            requirement is applicable and has just been added.
        z6Ignoring %s: markers '%s' don't match your environmentNz+ is not a supported wheel on this platform.z+a user supplied req shouldn't have a parentzDouble requirement given: z
 (already in z, name=�)z#Could not satisfy constraints for 'zC': installation from path or url cannot be constrained to a versionFTzSetting %s extras to: %s)�
match_markersr/�info�name�markers�link�is_wheelr�filenamerr rX�	supportedr�
user_supplied�add_unnamed_requirement�get_requirement�KeyErrorrZ�extrasr_�	specifier�add_named_requirement�path�tuple�sorted�setr4)
rTrarerfrg�wheel�tags�existing_req�has_conflicting_requirement�does_not_satisfy_constraints
          r9r[z Resolver._add_requirement_to_set�s��,�(�(�)9�:��K�K�H�� � ��#�#�
�
�t�8�O����� 0� 0� 9� 9��+�*�*�3�3�4�E�%�3�3�5�D��5�5�e�o�o�d�>S�'��~�~�&�&Q�R����)�)�_�-D�	9�8�	9�D�
����3�3�K�@��=�$�&�&�	 ��/�/��0@�0@�A�
�
�t�#�
H��
H� �+�+�+�
H��#�#�{�'9�'9�9�
H�� � �	
H�
���
H�� � �*�*�k�o�o�.G�.G�G�	$�'�#�,�[�M�:�+�n�G�K�4D�4D�3G�q�J��
���1�1�+�>��=�+�-�-��!�!��)@�)@��|�#�#�&1�&6�&6�'
����Q�+�"2�"2�"7�"7�<�;L�;L�;Q�;Q�"Q�<
�#�'�#�5�k�6F�6F�5G�H+�+��
�#(����$�$�)-�L�&�#��3�|�*�*�+�c�+�2D�2D�.E�E�F�
���	���&�����	
��~�|�+�+��q�	 ��L�	 �s�K�K&�%K&r_c��|jdk(ry|jdk(ry|jdk(sJ�|jxs|jS)Nr?Fr=Tr>)rHrrrZ�rTr_s  r9�_is_upgrade_allowedzResolver._is_upgrade_allowed2sO��� � �$5�5��
�
"�
"�g�
-���(�(�,<�<�<�<��$�$�6����6rVc��|j�J�|jr|jjrd|_d|_y)z4
        Set a requirement to be installed.
        NT)�satisfied_byrD�in_usersite�should_reinstallr�s  r9�_set_req_to_reinstallzResolver._set_req_to_reinstall;s=�����+�+�+��!�!�S�%5�%5�%A�%A�#'�C� ���rV�req_to_installc��|jry|j|j�|jsy|jr|j|�y|j
|�s|jdk(ryy|js	|jj|d��|j|�y#t$rYyt$rY�'wxYw)aCheck if req_to_install should be skipped.

        This will check if the req is installed, and whether we should upgrade
        or reinstall it, taking into account all the relevant user options.

        After calling this req_to_install will only have satisfied_by set to
        None if the req_to_install is to be upgraded/reinstalled etc. Any
        other value will be a dist recording the current thing installed that
        satisfies the requirement.

        Note that for vcs urls and the like we can't assess skipping in this
        routine - we simply identify that we need to pull the thing down,
        then later on it is pulled down and introspected to assess upgrade/
        reinstalls etc.

        :return: A text reason for why it was skipped, or None.
        Nr>z#already satisfied, skipping upgradezalready satisfiedT)�upgradezalready up-to-date)
rF�check_if_existsrDr�rGr�r�rHrnrA�find_requirementrr)rTr�s  r9�_check_skip_installedzResolver._check_skip_installedFs���(� � ���&�&�t�'9�'9�:��*�*������&�&�~�6���'�'��7��$�$�(8�8�<�&�
�"�"�	
����,�,�^�T�,�J�	
�"�"�>�2���/�
,�+�'�
��	
�s�B2�2	C�=C�Cc���|j|�}|jj||�}|sy|j}|jr-|j
xsd}d|�d|��}tj|�|S)Nz<none given>zDThe candidate selected for download or install is a yanked version: z
Reason for being yanked: )r�rAr�rn�	is_yanked�
yanked_reasonr/r0)rTr_r��best_candidatern�reason�msgs       r9�_find_requirement_linkzResolver._find_requirement_link|s����*�*�3�/�����5�5�c�7�C�����"�"���>�>��'�'�9�>�F�
#�#1�"2�3,�,2�8�5�	
�
�N�N�3���rVc��|j�|j|�|_|j�|jjry|j�Jd��|jj|j|jt���}|��tjd|j�|j|jur|jr|j|_|j�|j|_n&t|j|j��|_|j|_yy)afEnsure that if a link can be found for this, that it is found.

        Note that req.link may still be None - if the requirement is already
        installed and not needed to be upgraded based on the return value of
        _is_upgrade_allowed().

        If preparer.require_hashes is True, don't use the wheel cache, because
        cached wheels, always built locally, have different hashes than the
        files downloaded from the index server and thus throw false hash
        mismatches. Furthermore, cached wheels at present have undeterministic
        contents due to file modification times.
        Nz1_find_requirement_link unexpectedly returned None)rn�package_name�supported_tagszUsing cached wheel link: %s)�link_is_in_wheel_cache)rnr�rBr@�require_hashes�get_cache_entryrlr r/r4�
original_link�
persistent�cached_wheel_source_link�origin�
download_infor!)rTr_�cache_entrys   r9�_populate_linkzResolver._populate_link�s���8�8���2�2�3�7�C�H����#�t�}�}�'C�'C���x�x�#�X�%X�X�#��&�&�6�6�������(�?�7�
��
�"��L�L�6��8H�8H�I��x�x�3�,�,�,��1G�1G�/2�x�x��,��!�!�-�$/�$6�$6��!�%9��H�H�[�5K�5K�%��!�#�'�'�C�H�#rVc��|jr|jj|�S|j�J�|j	|�}|jr|jj||�S|j
|�|jj|�}|js|j|j�|jrq|jdk7xs5|jxs'|jxs|jjdk(}|r|j|�|St j#d|�|S)zzTakes a InstallRequirement and returns a single AbstractDist         representing a prepared variant of the same.
        r?�filez<Requirement already satisfied (use --upgrade to upgrade): %s)�editabler@�prepare_editable_requirementr�r��prepare_installed_requirementr��prepare_linked_requirementrFr�rDrHrGrn�schemer�r/rk)rTr_�skip_reasonr%�
should_modifys     r9�
_get_dist_forzResolver._get_dist_for�s,���<�<��=�=�=�=�c�B�B����'�'�'��0�0��5������=�=�>�>�s�K�P�P�	
���C� ��}�}�7�7��<���$�$����� 2� 2�3�����%�%�):�:�-��'�'�-��(�(�-��8�8�?�?�f�,�	
���*�*�3�/���	���R����rVc������	��js�jrgSd�_�j��}t|�j�j
��g�	dtdttddf�	���fd�}t�5�j�J��j�j�s"�jsJ��j��d���js��jr/t j#d	d
j%�j��t't)�j�t)|j+��z
�}|D].}t j-d|j.|j0|��0t't)|j+��t)�j�z�}|j3|�D]}|||���ddd��	S#1swY�	SxYw)
zxPrepare a single requirements file.

        :return: A list of additional InstallRequirements to also install.
        T)r&r'�subreqrgr(Nc�����	jt|���}�j}�	j�|||��\}}|r |r�	j|j|��j
|�y)N)rfrg)rQr+rlr[rSr`r])
r�rg�sub_install_reqrf�
to_scan_again�
add_to_parent�	more_reqsr�rarTs
      ����r9�add_reqz&Resolver._resolve_one.<locals>.add_reqs{���#�4�4�S��[�.�Q�O�,�1�1�O�+/�+G�+G��� /�!1�	,H�,�(�M�=��=��-�-�o�>�E�E�m�T����]�+rV)rfz!Installing extra requirements: %r�,z%%s %s does not provide the extra '%s')rg)rZ�preparedr�r:rPr'rrr+r"rl�has_requirementrrr[rErvr/r4r2r{r|�iter_provided_extrasr0r1r8�iter_dependencies)
rTrar�r%r��missing_requested�missing�available_requestedr�r�s
```      @r9r^zResolver._resolve_one�s�����$�$��(?�(?��I�"&����!�!�.�1��	$���.�.�#'�#>�#>�	
�/1�	�	,�K�	,�8�C�=�	,�T�	,�	,� �\�"	J�"�&�&�2�2�2�"�2�2�>�3F�3F�G�&�3�3�3�3��,�,�#�^�T�-���+�+�!�(�(��L�L�;�����!6�!6�7��%+���-�-�.��T�5N�5N�5P�1Q�Q�%�!� 1��G��N�N�?��
�
�����	��'-���1�1�3�4�s�>�;P�;P�7Q�Q�'�#�#�4�4�5H�I�J�F��F�5H�I�J�C"	J�H��I"	J�H��s
�EG#�#G-�req_setc������g�t��dtddf����fd��|jj�D]
}�|���S)z�Create the installation order.

        The installation order is topological - requirements are installed
        before the requiring thing. We break cycles at an arbitrary point,
        and make no other guarantees.
        r_r(Nc����|js|�vry|jry�j|��j|jD]
}�|���j|�y�N)r�rZ�addrSrlr`)r_�dep�order�ordered_reqs�schedulerTs  ����r9r�z1Resolver.get_installation_order.<locals>.scheduleIs_������3�,�#6���~�~�����S�!��4�4�S�X�X�>�
����
�
��L�L��rV)r|r�requirements�values)rTr�rer�r�r�s`  @@@r9�get_installation_orderzResolver.get_installation_order:sW�����03���	�,�	��	�	�#�/�/�6�6�8�	"�K��[�!�	"��rVr�)NN) �__name__�
__module__�__qualname__�__doc__rNrrrr
r�boolr+r
�intrMrrrrdrr[r�r�r�rr�r�rr�r^r��
__classcell__)rUs@r9r<r<ms����I��6:�$R�%�$R��$R��j�)�	$R�
5�$R��
$R�"�$R��$R�!%�$R��$R��$R�"�%��S��/�2�$R�
�$R�L#��0�1�#�KO�#�	�#�R*.�48�q,�'�q,�(�q,�"�#��	q,�
#�8�C�=�1�q,�
�t�&�'��2D�)E�E�	F�
q,�f7�'9�7�d�7�	 �);�	 ��	 �4�0�4�	�#��4�l�*<���$���,%(�"4�%(��%(�N,�!3�,�8H�,�\Q�'�Q�+�Q�
� �	!�	Q�f�%��	
� �	!�rVr<)F)Cr��loggingrO�collectionsr�	itertoolsr�typingrrrrr	r
�pip._vendor.packagingr�"pip._vendor.packaging.requirementsr�pip._internal.cacher
�pip._internal.exceptionsrrrrrrr�"pip._internal.index.package_finderr�pip._internal.metadatar�pip._internal.models.linkr�pip._internal.models.wheelr� pip._internal.operations.preparer�pip._internal.req.req_installrr�pip._internal.req.req_setr�pip._internal.resolution.baserr�pip._internal.utilsr�&pip._internal.utils.compatibility_tagsr �&pip._internal.utils.direct_url_helpersr!�pip._internal.utils.loggingr"�pip._internal.utils.miscr#�pip._internal.utils.packagingr$�	getLoggerr�r/r+�DiscoveredDependenciesr�r�r:r<�rVr9�<module>r�s���
��
�#��D�D�,�:�*����=�3�*�,�@��5�R�2�@�G�2�;�?�	��	�	�8�	$��$�X�c�]�D�9K�4L�%L�M��$)�3�
�3���S�#�
�&�3�!�3�
�	3�lh�|�hrV

Youez - 2016 - github.com/yon3zu
LinuXploit