wb"ddlZddlZddlmZddlmZddlmZddlm Z m Z ddl m Z ddl mZddlmZmZmZdd lmZejeZGd d e ZdS) N)Values) cmdoptions)make_target_python)RequirementCommand with_cleanup)SUCCESS)get_build_tracker) ensure_dirnormalize_path write_output) TempDirectorycNeZdZdZdZd dZededee de fdZ dS) 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 X|jtj|jtj|jtj|jtj|jtj|jtj|jtj |jtj |jtj |jtj |jtj |jtj|jtj|jtj|jtj|jddddddt$jdtj|jtjtj|j}|jd ||jd |jdS) Nz-dz--destz--destination-dirz--destination-directory download_dirdirzDownload packages into .)destmetavardefaulthelpr)cmd_opts add_optionr constraintsbuild_constraints requirementsno_deps no_binary only_binary prefer_binarysrcprerequire_hashes progress_barno_build_isolation use_pep517check_build_depsignore_requires_pythonoscurdiradd_target_python_optionsmake_option_group index_groupparserinsert_option_group)self index_optss q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/commands/download.py add_optionszDownloadCommand.add_options$sv   !7!9!9:::   !=!?!?@@@   !8!:!:;;;   !3!5!5666   !5!7!7888   !7!9!9:::   !9!;!;<<<   !1!1222   !1!1222   !:!!@!@AAA   !6!8!8999   !!>???   !B!D!DEEE      %I0 !  ,T];;;1  " K  '':666 ''4=99999optionsargsc Fd|_g|_tj|tj|t |j|_t|j||}t|}| ||||j }| t}t|j dd}|||||}|||||||jd|j} || |||j |j} ||| |d} | | jg} | jD]A} | j8| jJ| | | | jB| r#t=d d | t@S) NT)r5session target_pythonr(download)deletekindglobally_managedF)temp_build_dirr5 build_trackerr8finderr use_user_site verbosity)preparerr@r5r(py_version_info)check_supported_wheelszSuccessfully downloaded %s )!ignore_installed editablesrcheck_dist_restrictioncheck_build_constraintsr rr get_default_sessionr_build_package_finderr( enter_contextr r no_cleanget_requirementsmake_requirement_preparerrB make_resolverpython_versiontrace_basic_inforesolve prepare_linked_requirements_morervalues satisfied_bynamesave_linked_requirementappendr joinr)r0r5r6r8r9r@r? directoryreqsrCresolverrequirement_set downloadedreqs r2runzDownloadCommand.runJsF#' )'222*7333-g.BCC7'(((**733*733 ++'#*#A ,  **+<+>+>?? !''!   $$T7FGDD11$' -n2   %%#*#A#2 &   f%%%"**4*MM11/2N2U2U2W2WXXX " "/6688 , ,C'x+++00555!!#(+++  M 5sxx 7K7K L L Lr4)rN) __name__ __module__ __qualname____doc__usager3rrliststrintrbr4r2rrs|   0E$:$:$:$:LC6CcCsCCC\CCCr4r)loggingr)optparserpip._internal.clirpip._internal.cli.cmdoptionsrpip._internal.cli.req_commandrrpip._internal.cli.status_codesr,pip._internal.operations.build.build_trackerr pip._internal.utils.miscr r r pip._internal.utils.temp_dirr getLoggerrcloggerrrkr4r2rws  ((((((;;;;;;JJJJJJJJ222222JJJJJJMMMMMMMMMM666666  8 $ $~~~~~(~~~~~r4