ó
    =®iÓ  ã                   óº   • S SK r S SKrS SKJr  S SKJr  S SKJr  S SKJ	r	J
r
  S SKJr  S SKJr  S SKJrJrJr  S S	KJr  \ R*                  " \5      r " S
 S\	5      rg)é    N)ÚValues)Ú
cmdoptions)Úmake_target_python)ÚRequirementCommandÚwith_cleanup)ÚSUCCESS)Úget_build_tracker)Ú
ensure_dirÚnormalize_pathÚwrite_output)ÚTempDirectoryc                   óL   • \ rS rSrSrSrSS jr\S\S\	\
   S\4S	 j5       rS
rg)ÚDownloadCommandé   a,  
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> ...ÚreturnNc                 óæ  • U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R
                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                  " 5       5        U R                   R                  [        R                   " 5       5        U R                   R                  [        R"                  " 5       5        U R                   R                  SSSSSS[$        R&                  SS9  [        R(                  " U R                   5        [        R*                  " [        R,                  U R.                  5      nU R.                  R1                  S	U5        U R.                  R1                  S	U R                   5        g )
Nz-dz--destz--destination-dirz--destination-directoryÚdownload_dirÚdirzDownload packages into <dir>.)ÚdestÚmetavarÚdefaultÚhelpr   )Úcmd_optsÚ
add_optionr   ÚconstraintsÚbuild_constraintsÚrequirementsÚno_depsÚ	no_binaryÚonly_binaryÚprefer_binaryÚsrcÚpreÚrequire_hashesÚprogress_barÚno_build_isolationÚ
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_optss     ÚLC:\des-py\RoboSAPF\venv\Lib\site-packages\pip/_internal/commands/download.pyÚadd_optionsÚDownloadCommand.add_options$   s(  € Ø�‰× Ñ ¤×!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Ø�‰× Ñ ¤×!<Ò!<Ó!>Ô?Ø�‰× Ñ ¤×!BÒ!BÓ!DÔEà�‰× Ñ ØØØØ%ØØÜ—I‘IØ0ð 	!ñ 		
ô 	×,Ò,¨T¯]©]Ô;ä×1Ò1Ü×"Ñ"Ø�K‰Kó
ˆ
ð
 	�‰×'Ñ'¨¨:Ô6Ø�‰×'Ñ'¨¨4¯=©=Õ9ó    ÚoptionsÚargsc                 ó.  • SUl         / Ul        [        R                  " U5        [        R                  " U5        [        UR                  5      Ul        [        UR                  5        U R                  U5      n[        U5      nU R                  UUUUR                  S9nU R                  [        5       5      n[        UR                  (       + SSS9nU R!                  X!XS5      nU R#                  UUUUUUR                  SU R$                  S9n	U R'                  U	UUUR                  UR(                  S9n
U R+                  U5        U
R-                  USS9nU	R/                  UR0                  R3                  5       5        / nUR0                  R3                  5        HM  nUR4                  b  M  UR6                  c   eU	R9                  U5        UR;                  UR6                  5        MO     U(       a  [=        S	S
R?                  U5      5        [@        $ )NT)r7   ÚsessionÚtarget_pythonr)   Údownload)ÚdeleteÚkindÚglobally_managedF)Útemp_build_dirr7   Úbuild_trackerr:   Úfinderr   Úuse_user_siteÚ	verbosity)ÚpreparerrB   r7   r)   Úpy_version_info)Úcheck_supported_wheelszSuccessfully downloaded %sÚ )!Úignore_installedÚ	editablesr   Úcheck_dist_restrictionÚcheck_build_constraintsr   r   r
   Úget_default_sessionr   Ú_build_package_finderr)   Úenter_contextr	   r   Úno_cleanÚget_requirementsÚmake_requirement_preparerrD   Úmake_resolverÚpython_versionÚtrace_basic_infoÚresolveÚ prepare_linked_requirements_morer   ÚvaluesÚsatisfied_byÚnameÚsave_linked_requirementÚappendr   Újoinr   )r1   r7   r8   r:   r;   rB   rA   Ú	directoryÚreqsrE   ÚresolverÚrequirement_setÚ
downloadedÚreqs                 r3   ÚrunÚDownloadCommand.runJ   sû  € à#'ˆÔ ð ˆÔä×)Ò)¨'Ô2Ü×*Ò*¨7Ô3ä-¨g×.BÑ.BÓCˆÔÜ�7×'Ñ'Ô(à×*Ñ*¨7Ó3ˆä*¨7Ó3ˆØ×+Ñ+ØØØ'Ø#*×#AÑ#Að	 ,ð 
ˆð ×*Ñ*Ô+<Ó+>Ó?ˆä!Ø×'Ñ'Ô'ØØ!ñ
ˆ	ð ×$Ñ$ T°FÓDˆà×1Ñ1Ø$ØØ'ØØØ ×-Ñ-ØØ—n‘nð 2ð 	
ˆð ×%Ñ%ØØØØ#*×#AÑ#AØ#×2Ñ2ð &ð 
ˆð 	×Ñ˜fÔ%à"×*Ñ*¨4ÈÐ*ÐMˆà×1Ñ1°/×2NÑ2N×2UÑ2UÓ2WÔXà "ˆ
Ø"×/Ñ/×6Ñ6Ö8ˆCØ×ÑÓ'Ø—x‘xÑ+Ð+Ð+Ø×0Ñ0°Ô5Ø×!Ñ! #§(¡(Ö+ñ	 9ö ÜÐ5°s·x±xÀ
Ó7KÔLäˆr6   © )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úusager4   r   r   ÚlistÚstrÚintrd   Ú__static_attributes__rf   r6   r3   r   r      sF   † ñ
ð0€Eô$:ðL ðC˜6ð C¨¨c©ð C°só Có óCr6   r   )Úloggingr*   Úoptparser   Úpip._internal.clir   Ú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   Ú	getLoggerrg   Úloggerr   rf   r6   r3   Ú<module>r|      sE   ðÛ Û 	Ý å (Ý ;ß JÝ 2Ý Jß MÑ MÝ 6à	×	Ò	˜8Ó	$€ô~Ð(õ ~r6   