403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.6/site-packages/pip/_internal/operations/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/pip/_internal/operations/__pycache__/check.cpython-36.pyc
3

�N�a��@sxdZddlZddlmZmZmZmZmZmZm	Z	ddl
mZddlm
Z
mZddlmZddlmZddlmZdd	lmZeje�ZGd
d�de�Zee
efZe	e
efZe	e
eefZee
eefZee
eefZe	eefZ e	ee fZ!e	ee"fd�d
d�Z#deeee$ge"fe d�dd�Z%eee!d�dd�Z&eeeee
d�dd�Z'ee
eee
d�dd�Z(dS)z'Validation of dependencies of packages
�N)�Callable�Dict�List�
NamedTuple�Optional�Set�Tuple)�Requirement)�NormalizedName�canonicalize_name)�)make_distribution_for_install_requirement)�get_default_environment)�DistributionVersion)�InstallRequirementc@seZdZUeeedS)�PackageDetailsN)�__name__�
__module__�__qualname__r�versionrr	�dependencies�rr�/usr/lib/python3.6/check.pyrs
r)�returncCs�i}d}t�}xv|jdfd�D]d}|j}y t|j��}t|j|�||<Wqttfk
r�}zt	j
d||�d}WYdd}~XqXqW||fS)z3Converts a list of distributions into a PackageSet.F)Z
local_only�skipz%Error parsing requirements for %s: %sTN)r
Ziter_installed_distributions�canonical_name�list�iter_dependenciesrr�OSError�
ValueError�loggerZwarning)�package_setZproblems�env�dist�namer�errr�!create_package_set_from_installed"sr%)r �
should_ignorercCs�i}i}x�|j�D]�\}}t�}t�}|r4||�r4qxv|jD]l}t|j�}	|	|kr~d}
|jdk	rj|jj�}
|
r<|j|	|f�q<||	j}|j	j
|dd�s<|j|	||f�q<W|r�t|td�||<|rt|td�||<qW||fS)z�Check if a package set is consistent

    If should_ignore is passed, it should be a callable that takes a
    package name and returns a boolean.
    TN)Zprereleases)�key)
�items�setrrr#ZmarkerZevaluate�addrZ	specifier�contains�sorted�str)r r&�missingZconflicting�package_nameZpackage_detailZmissing_depsZconflicting_deps�reqr#Zmissedrrrr�check_package_set3s0	



r1)�
to_installrcs6t�\}}t||�}t||��|t|�fdd�d�fS)zeFor checking if the dependency graph would be consistent after     installing given requirements
    cs|�kS)Nr)r#)�	whitelistrr�<lambda>osz)check_install_conflicts.<locals>.<lambda>)r&)r%�_simulate_installation_of�_create_whitelistr1)r2r �_�would_be_installedr)r3r�check_install_conflicts`s


r9)r2r rcCsPt�}xD|D]<}t|�}|j�}|j}t|jt|j���||<|j|�qW|S)z=Computes the version of packages after installing to_install.)	r)rZget_metadata_distributionrrrrrr*)r2r Z	installedZinst_reqZ
abstract_distr"r#rrrr5ts
r5)r8r rcCsRt|�}xD|D]<}||krqx,||jD]}t|j�|kr(|j|�Pq(WqW|S)N)r)rrr#r*)r8r Zpackages_affectedr/r0rrrr6�s


r6)N))�__doc__ZloggingZtypingrrrrrrrZ"pip._vendor.packaging.requirementsr	Zpip._vendor.packaging.utilsr
rZpip._internal.distributionsrZpip._internal.metadatar
Zpip._internal.metadata.baserZpip._internal.req.req_installrZ	getLoggerrrrZ
PackageSetZMissingZConflictingZMissingDictZConflictingDictZCheckResultZConflictDetails�boolr%r-r1r9r5r6rrrr�<module>s2$
+

Youez - 2016 - github.com/yon3zu
LinuXploit