£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
B
    Re6                 @   s   d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm	Z	m
Z
 d dlmZ d dlmZ d dlmZmZmZ d d	lmZ d d
lmZ erd dlmZ d dlmZ eeZG dd de	ZdS )    )absolute_importN)
cmdoptions)make_target_python)RequirementCommandwith_cleanup)SUCCESS)get_requirement_tracker)
ensure_dirnormalize_pathwrite_output)TempDirectory)MYPY_CHECK_RUNNING)Values)Listc               @   s(   e Zd ZdZdZdd Zedd ZdS )DownloadCommandaL  
    Download packages from:

    - PyPI (and other indexes) using requirement specifiers.
    - VCS project urls.
    - Local project directories.
    - Local or remote source archives.

    pip also supports downloading from "requirements files", which provide
    an easy way to specify a whole environment to be downloaded.
    a  
      %prog [options] <requirement specifier> [package-index-options] ...
      %prog [options] -r <requirements file> [package-index-options] ...
      %prog [options] <vcs project url> ...
      %prog [options] <local project path> ...
      %prog [options] <archive url/path> ...c          
   C   sL  | j t  | j t  | j t  | j t  | j t  | j t  | j t	  | j t
  | j t  | j t  | j t  | j t  | j t  | j t  | j t  | j jddddddtjdd t| j  ttj| j}| jd	| | jd	| j  d S )
Nz-dz--destz--destination-dirz--destination-directorydownload_dirdirzDownload packages into <dir>.)destmetavardefaulthelpr   )cmd_opts
add_optionr   constraintsrequirements	build_dirno_depsglobal_options	no_binaryonly_binaryprefer_binarysrcprerequire_hashesprogress_barno_build_isolation
use_pep517no_use_pep517oscurdiradd_target_python_optionsmake_option_groupindex_groupparserinsert_option_group)self
index_opts r1   /builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/download.pyadd_options*   s6    zDownloadCommand.add_optionsc          	   C   s   d|_ g |_t| t|j|_t|j | |}t|}| j	|||d}|j
pX|j }| t }t|j|ddd}| ||||}	| j||||||jdd}
| j|
|||jd}| | |j|	dd}d	d
d |j D }|rtd| tS )NT)optionssessiontarget_pythondownload)deletekindglobally_managedF)temp_build_dirr4   req_trackerr5   finderr   use_user_site)preparerr=   r4   py_version_info)check_supported_wheels c             S   s   g | ]}|j r|jqS r1   )successfully_downloadedname).0reqr1   r1   r2   
<listcomp>   s   z'DownloadCommand.run.<locals>.<listcomp>zSuccessfully downloaded %s)ignore_installed	editablesr   check_dist_restrictionr
   r   r	   get_default_sessionr   _build_package_finderno_cleanr   enter_contextr   r   get_requirementsmake_requirement_preparermake_resolverpython_versiontrace_basic_inforesolvejoinr   valuesr   r   )r/   r4   argsr5   r6   r=   build_deleter<   	directoryreqsr?   resolverrequirement_set
downloadedr1   r1   r2   runN   sP    







zDownloadCommand.runN)__name__
__module____qualname____doc__usager3   r   r^   r1   r1   r1   r2   r      s   $r   )
__future__r   loggingr(   Zpip._internal.clir   Zpip._internal.cli.cmdoptionsr   pip._internal.cli.req_commandr   r   pip._internal.cli.status_codesr   pip._internal.req.req_trackerr   pip._internal.utils.miscr	   r
   r   pip._internal.utils.temp_dirr   pip._internal.utils.typingr   optparser   typingr   	getLoggerr_   loggerr   r1   r1   r1   r2   <module>   s   
