<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
U
    ʗRe                     @   s   d dl Z d dlZd dlmZ d dlm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 e eZG dd deZdS )    N)Values)List)
cmdoptions)make_target_python)RequirementCommandwith_cleanup)SUCCESS)get_build_tracker)
ensure_dirnormalize_pathwrite_output)TempDirectoryc                   @   s<   e Zd ZdZdZddddZeeee	 e
d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> ...N)returnc              
   C   s\  | 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 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no_depsglobal_options	no_binaryonly_binaryprefer_binarysrcprerequire_hashesprogress_barno_build_isolation
use_pep517no_use_pep517check_build_depsignore_requires_pythonoscurdiradd_target_python_optionsmake_option_groupindex_groupparserinsert_option_group)self
index_opts r1   /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/commands/download.pyadd_options%   sB    zDownloadCommand.add_options)optionsargsr   c              
   C   s.  d|_ g |_t| t|j|_t|j | |}t|}| j	||||j
d}| t }t|j ddd}| ||||}| j||||||jd| jd}	| j|	|||j
|j|jd}
| | |
j|dd}g }|j D ]2}|jd kr|jd k	st|	| ||j q|r*td	d
| t S )NT)r4   sessiontarget_pythonr'   download)deletekindglobally_managedF)temp_build_dirr4   build_trackerr6   finderr   use_user_site	verbosity)preparerr>   r4   r'   r$   py_version_info)check_supported_wheelszSuccessfully downloaded %s )!ignore_installed	editablesr   check_dist_restrictionr   r   r
   get_default_sessionr   _build_package_finderr'   enter_contextr	   r   no_cleanget_requirementsmake_requirement_preparerr@   make_resolverr$   python_versiontrace_basic_inforesolver   valuessatisfied_bynameAssertionErrorsave_linked_requirementappendr   joinr   )r/   r4   r5   r6   r7   r>   r=   	directoryreqsrA   resolverrequirement_setZ
downloadedreqr1   r1   r2   runL   sb    


	


zDownloadCommand.run)__name__
__module____qualname____doc__usager3   r   r   r   strintr^   r1   r1   r1   r2   r      s
   'r   )loggingr(   optparser   typingr   Zpip._internal.clir   Zpip._internal.cli.cmdoptionsr   pip._internal.cli.req_commandr   r   pip._internal.cli.status_codesr   ,pip._internal.operations.build.build_trackerr	   pip._internal.utils.miscr
   r   r   pip._internal.utils.temp_dirr   	getLoggerr_   loggerr   r1   r1   r1   r2   <module>   s   
