tkJ
_ d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z m
Z
d dlmZ d dl
mZ d dlmZmZmZ d d lmZ e j e Z G d
de ZdS ) N)Values)
cmdoptions)make_target_python)RequirementCommandwith_cleanup)SUCCESS)get_build_tracker)
ensure_dirnormalize_pathwrite_output)
TempDirectoryc N e Zd ZdZdZd dZededee de
fd ZdS )
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] [package-index-options] ...
%prog [options] -r [package-index-options] ...
%prog [options] ...
%prog [options] ...
%prog [options] ...returnNc
| j t j | j t j | j t j | j t j | j t j | j t j | j t j | j t j
| j t j | j t j | j t j
| j t j | j ddddddt j d t j | j t j t j | j }t j t j | j }| j d | | j d | | j d | j d S )
Nz-dz--destz--destination-dirz--destination-directorydownload_dirdirzDownload packages into .)destmetavardefaulthelpr )cmd_opts
add_optionr constraintsbuild_constraintsrequirementsrequirements_from_scriptsno_depssrcrequire_hashesprogress_barno_build_isolation
use_pep517check_build_depsignore_requires_pythonoscurdiradd_target_python_optionsmake_option_groupindex_groupparserpackage_selection_groupinsert_option_group)self
index_optsselection_optss /builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/commands/download.pyadd_optionszDownloadCommand.add_options$ sQ
!7!9!9:::
!=!?!?@@@
!8!:!:;;;
!E!G!GHHH
!3!5!5666
!1!1222
!:!!@!@AAA
!6!8!8999
!!>???
!B!D!DEEE
%I0 !
,T];;;1"K
$5.K
'':666''>:::''4=99999 optionsargsc
n d|_ g |_ t j | t j | t j | t
|j |_ t |j | | }t | }| ||||j }|
t }t |j dd }| |||| }| ||||||j d| j } | | |||j |j }
| | |
|d }| |j g }|j D ]A}
|
j 8|
j J | |
| |
j B|r#t? d d
| tB S )NT)r4 session
target_pythonr% download)deletekindglobally_managedF)temp_build_dirr4
build_trackerr7 finderr
use_user_site verbosity)preparerr? r4 r% py_version_info)check_supported_wheelszSuccessfully downloaded %s )"ignore_installed editablesr check_dist_restrictioncheck_build_constraintscheck_release_control_exclusiver r r
get_default_sessionr _build_package_finderr%
enter_contextr r
no_cleanget_requirementsmake_requirement_preparerrA
make_resolverpython_versiontrace_basic_inforesolve prepare_linked_requirements_morer valuessatisfied_bynamesave_linked_requirementappendr joinr )r. r4 r5 r7 r8 r? r> directoryreqsrB resolverrequirement_set
downloadedreqs r1 runzDownloadCommand.runM sW #' )'222*733327;;;-g.BCC7'(((**733*733
++'#*#A ,
**+<+>+>??
!''!
$$T7FGDD11$' -n 2
%%#*#A#2 &