o
ai
@ s d dl Z d dlZd dlmZmZmZmZmZ d dlm Z ddl
mZ ddlm
Z
ddlmZ g dZeeZG d d
d
Zdee
deeee
f fd
dZdee
dee dee dee dee dee dedededee fddZdS ) N)IteratorListOptionalSequenceTuple)
indent_log )parse_requirements)InstallRequirement)RequirementSet)r r
r install_given_reqsc @ s, e Zd ZdeddfddZdefddZdS )InstallationResultnamereturnNc C s
|| _ d S )Nr )selfr r /builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/req/__init__.py__init__ s
zInstallationResult.__init__c C s d| j dS )NzInstallationResult(name=)r )r r r r __repr__ s zInstallationResult.__repr__)__name__
__module____qualname__strr r r r r r r
s r
requirementsr c c s0 | D ]}|j sJ d| |j |fV qd S )Nz%invalid to-be-installed requirement: r )r reqr r r _validate_requirements s
r install_optionsglobal_optionsroothomeprefixwarn_script_location
use_user_site pycompilec C s t t| } | rtdd| g }
t h | D ]Z\}}|j rEtd| t |j
dd}
W d n1 s?w Y nd}
z|j||||||||d W n tyg |
rf|j
sf|
w |
rq|j
rq|
|
t| qW d |
S 1 sw Y |
S )zu
Install everything in the given list.
(to be called after having downloaded and unpacked the packages)
z!Installing collected packages: %sz, zAttempting uninstall: %sT)auto_confirmN)r r! r" r# r$ r% )collectionsOrderedDictr loggerinfojoinkeysr itemsshould_reinstall uninstallinstall Exceptioninstall_succeededrollbackcommitappendr
)r r r r r! r" r# r$ r%
to_install installedreq_namerequirementuninstalled_pathsetr r r r % sP
r )r' loggingtypingr r r r r pip._internal.utils.loggingr req_filer req_installr
req_setr __all__ getLoggerr r) r
r r boolr r r r r