관리-도구
편집 파일: factory.cpython-36.pyc
3 �Re�A � @ s� d dl Z d dlmZ d dlmZmZmZmZ d dlm Z d dl mZ d dlm Z d dlmZ d dlmZmZmZ d d lmZ d d lmZ ddlmZ dd lmZmZmZmZmZ ddl m!Z! ddl"m#Z#m$Z$m%Z% e�r�d dl&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 d dl1m2Z2 d dl3m4Z4 d dl5m6Z6 d dl7m8Z8 d dl9m:Z:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZA d dlBmCZC ddlmDZDmEZE ddlmFZF e0d�ZGe(e?eGf ZHe(e4eDf ZIe jJeK�ZLG dd� deM�ZNdS )� N)�canonicalize_name)�DistributionNotFound�InstallationError�UnsupportedPythonVersion�UnsupportedWheel)�Wheel)�InstallRequirement)� get_supported)�Hashes)�dist_in_site_packages�dist_in_usersite�get_installed_distributions)�MYPY_CHECK_RUNNING)�running_under_virtualenv� )� Constraint)�AlreadyInstalledCandidate�EditableCandidate�ExtrasCandidate� LinkCandidate�RequiresPythonCandidate)�FoundCandidates)�ExplicitRequirement�RequiresPythonRequirement�SpecifierRequirement) � FrozenSet�Dict�Iterable�Iterator�List�Optional�Sequence�Set�Tuple�TypeVar)�SpecifierSet)�_BaseVersion)�Distribution)�ResolutionImpossible)� CacheEntry� WheelCache)� PackageFinder)�Link)�RequirementPreparer)�InstallRequirementProvider)� Candidate�Requirement)� BaseCandidate�Cc @ s� e Zd Zddd�Zedd� �Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zf fdd�Zdd� Z dd� Zdd� Zdd� Zdd� ZdS ) �FactoryNFc C sl || _ || _|| _t| �| _|| _|| _|| _|| _| | _ i | _ i | _|sbdd� tdd�D �| _ ni | _ d S )Nc S s i | ]}|t |j��qS � )r �project_name)�.0�distr4 r4 ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/factory.py� <dictcomp>g s z$Factory.__init__.<locals>.<dictcomp>F)� local_only)�_finder�preparer�_wheel_cacher �_python_candidate�_make_install_req_from_spec�_use_user_site�_force_reinstall�_ignore_requires_pythonZuse_lazy_wheel�_link_candidate_cache�_editable_candidate_cacher �_installed_dists)�self�finderr<