+
     h  c                   s    ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHtHtHt ^ RIHt ] P2                  ! ]4      t ! R R]4      tR# )i    N)Values)List)
cmdoptions)make_target_python)RequirementCommandwith_cleanup)SUCCESS)get_build_tracker)check_legacy_setup_py_options)
ensure_dirnormalize_pathwrite_output)TempDirectoryc                   sV   a  ] tR t^t o RtRtV 3R lR lt]V 3R lR l4       tRt	V t
R# )	DownloadCommanda,  
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                s   < V ^8  d   QhRR/# )   returnN Zformat__classdict__   "D/usr/lib/python3.14/site-packages/pip/_internal/commands/download.py__annotate__DownloadCommand.__annotate__&   s     %: %:T %:    c                sJ   V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P
                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                  ! 4       4       V P                   P                  \        P                   ! 4       4       V P                   P                  \        P"                  ! 4       4       V P                   P                  \        P$                  ! 4       4       V P                   P                  R RRRRR\&        P(                  RR7       \        P*                  ! V P                   4       \        P,                  ! \        P.                  V P0                  4      pV P0                  P3                  ^ V4       V P0                  P3                  ^ V P                   4       R# )	z-dz--destz--destination-dirz--destination-directorydownload_dirZdirzDownload packages into <dir>.)ZdestZmetavarZdefaultZhelpN)Zcmd_optsZ
add_optionr   ZconstraintsrequirementsZno_depsZglobal_optionsZ	no_binaryZonly_binaryZprefer_binaryZsrcZpreZrequire_hashesZprogress_barZno_build_isolation
use_pep517Zno_use_pep517Zcheck_build_depsignore_requires_pythonosZcurdirZadd_target_python_optionsZmake_option_groupZindex_groupZparserZinsert_option_group)selfZ
index_optss   & r   add_optionsZDownloadCommand.add_options&   sC     !7!7!9:  !8!8!:;  !3!3!56  !:!:!<=  !5!5!78  !7!7!9:  !9!9!;<  !12  !12  !:!:!<=  !8!8!:;  !>!>!@A  !6!6!89  !9!9!;<  !<!<!>?  !B!B!DE  %II0 	! 		
 	,,T]];11""KK


 	'':6''4==9r   c                s<   < V ^8  d   QhRS[ RS[S[,          RS[/# )r   optionsargsr   )r    r   ZstrZintr   r   r   r   r   N   s+     D D6 Dc Ds Dr   c                sR   R Vn         . Vn        \        P                  ! V4       \	        VP
                  4      Vn        \        VP
                  4       V P                  V4      p\        V4      pV P                  VVVVP                  R7      pV P                  \        4       4      p\        VP                  '       * RR R7      pV P                  W!WS4      p\!        W4       V P#                  VVVVVVP
                  RV P$                  R7      p	V P'                  V	VVVP                  VP(                  VP*                  R7      p
V P-                  V4       V
P/                  VR R7      p. pVP0                  P3                  4        FO  pVP4                  e   K  VP6                  f   Q hV	P9                  V4       VP;                  VP6                  4       KQ  	  V	P=                  VP0                  P3                  4       4       V'       d   \?        RR	PA                  V4      4       \B        # )
T)r   sessiontarget_pythonr   Zdownload)ZdeleteZkindZglobally_managedF)Ztemp_build_dirr   build_trackerr!   finderr   Zuse_user_site	verbosity)preparerr$   r   r   r   Zpy_version_info)Zcheck_supported_wheelszSuccessfully downloaded %sZ )"Zignore_installedZ	editablesr   Zcheck_dist_restrictionr
   r   r	   Zget_default_sessionr   Z_build_package_finderr   Zenter_contextr   r   Zno_cleanZget_requirementsr   Zmake_requirement_preparerr%   Zmake_resolverr   Zpython_versionZtrace_basic_infoZresolver   ZvaluesZsatisfied_byZnameZsave_linked_requirementZappendZ prepare_linked_requirements_morer   Zjoinr   )r   r   r    r!   r"   r$   r#   Z	directoryZreqsr&   ZresolverZrequirement_setZ
downloadedZreqs   &&&           r   runZDownloadCommand.runM   s   #'  ))'2-g.B.BC7''(**73*73++'#*#A#A	 , 
 **+<+>?!'''!
	 $$TFD%g411$' --nn 2 	
 %%#*#A#A))#22 & 
 	f%"**4*M "
"//668C'xx+++005!!#((+	 9 	11/2N2N2U2U2WX5sxx
7KLr   r   N)__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Zusager   r   r'   Z__static_attributes__Z__classdictcell__)r   s   @r   r   r      s2     
0E%: %:N D Dr   r   )Zloggingr   Zoptparser    Ztypingr   Zpip._internal.clir   Zpip._internal.cli.cmdoptionsr   Zpip._internal.cli.req_commandr   r   Zpip._internal.cli.status_codesr   Z,pip._internal.operations.build.build_trackerr   Zpip._internal.req.req_installr   Zpip._internal.utils.miscr	   r
   r   Zpip._internal.utils.temp_dirr   Z	getLoggerr(   Zloggerr   r   r   r   <module>r)      sK     	   ( ; J 2 J G M M 6			8	$@( @r   