ó
    T=Œj  ã                   óº   • 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                  SSSSSS["        R$                  SS9  [        R&                  " U R                   5        [        R(                  " [        R*                  U R,                  5      n[        R(                  " [        R.                  U R,                  5      nU R,                  R1                  S	U5        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Úrequirements_from_scriptsÚno_depsÚ	only_depsÚsrcÚrequire_hashesÚno_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Úpackage_selection_groupÚinsert_option_group)ÚselfÚ
index_optsÚselection_optss      Úc/Users/stevendouglas/BidBrain/.venv/lib/python3.13/site-packages/pip/_internal/commands/download.pyÚadd_optionsÚDownloadCommand.add_options$   sE  € Ø�‰× Ñ ¤×!7Ò!7Ó!9Ô:Ø�‰× Ñ ¤×!=Ò!=Ó!?Ô@Ø�‰× Ñ ¤×!8Ò!8Ó!:Ô;Ø�‰× Ñ ¤×!EÒ!EÓ!GÔHØ�‰× Ñ ¤×!3Ò!3Ó!5Ô6Ø�‰× Ñ ¤×!5Ò!5Ó!7Ô8Ø�‰× Ñ ¤§¢Ó!1Ô2Ø�‰× Ñ ¤×!:Ò!:Ó!<Ô=Ø�‰× Ñ ¤×!=Ò!=Ó!?Ô@Ø�‰× Ñ ¤×!8Ò!8Ó!:Ô;Ø�‰× Ñ ¤×!>Ò!>Ó!@ÔAØ�‰× Ñ ¤×!6Ò!6Ó!8Ô9Ø�‰× Ñ ¤×!<Ò!<Ó!>Ô?Ø�‰× Ñ ¤×!BÒ!BÓ!DÔEà�‰× Ñ ØØØØ%ØØÜ—I‘IØ0ð 	!ñ 		
ô 	×,Ò,¨T¯]©]Ô;ä×1Ò1Ü×"Ñ"Ø�K‰Kó
ˆ
ô
 $×5Ò5Ü×.Ñ.Ø�K‰Kó
ˆð
 	�‰×'Ñ'¨¨:Ô6Ø�‰×'Ñ'¨¨>Ô:Ø�‰×'Ñ'¨¨4¯=©=Õ9ó    ÚoptionsÚargsc                 óˆ  • SUl         / Ul        [        R                  " U5        [        R                  " U5        [        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S9	n	U R+                  U	UUUR                  UR,                  S9n
U R/                  U5        U
R1                  USS9nU	R3                  UR4                  R7                  5       5        / nUR4                  R7                  5        HM  nUR8                  b  M  UR:                  c   eU	R=                  U5        UR?                  UR:                  5        MO     U(       a  [A        S	S
RC                  U5      5        [D        $ )NT)r8   ÚsessionÚtarget_pythonr(   Údownload)ÚdeleteÚkindÚglobally_managedF)	Útemp_build_dirr8   Úbuild_trackerr;   Úfinderr   Úuse_user_siteÚ	verbosityÚallow_editables)ÚpreparerrC   r8   r(   Úpy_version_info)Úcheck_supported_wheelszSuccessfully downloaded %sÚ )#Úignore_installedÚ	editablesr   Úcheck_dist_restrictionÚcheck_build_constraintsÚcheck_release_control_exclusiveÚ(check_only_deps_option_does_not_conflictr   r   r
   Úget_default_sessionr   Ú_build_package_finderr(   Úenter_contextr	   r   Úno_cleanÚget_requirementsÚmake_requirement_preparerrE   Úmake_resolverÚpython_versionÚtrace_basic_infoÚresolveÚ prepare_linked_requirements_morer   ÚvaluesÚsatisfied_byÚnameÚsave_linked_requirementÚappendr   Újoinr   )r1   r8   r9   r;   r<   rC   rB   Ú	directoryÚreqsrG   ÚresolverÚrequirement_setÚ
downloadedÚreqs                 r4   ÚrunÚDownloadCommand.runO   s  € à#'ˆÔ ð ˆÔä×)Ò)¨'Ô2Ü×*Ò*¨7Ô3Ü×2Ò2°7Ô;Ü×;Ò;¸GÔDä-¨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äˆr7   © )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úusager5   r   r   ÚlistÚstrÚintrh   Ú__static_attributes__rj   r7   r4   r   r      sF   † ñ
ð0€Eô):ðV ðF˜6ð F¨¨c©ð F°só Fó óFr7   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   Ú	getLoggerrk   Úloggerr   rj   r7   r4   Ú<module>r€      sE   ðÛ Û 	Ý å (Ý ;ß JÝ 2Ý Jß MÑ MÝ 6à	×	Ò	˜8Ó	$€ôFÐ(õ Fr7   