4~Ψ[ddlmZddlZddlZddlZddlZddlZddlZddlm Z m Z ddl m Z ddl mZddlmZddlmZddlZddlmZdd lmZdd lmZdd lmZmZdd lmZm Z dd l!m"Z"m#Z#m$Z$ddl%m&Z&ddl'm(Z(ddl)m*Z*ddl+m,Z,ddl-m.Z.m/Z/ddl0m1Z1ddl2m3Z3ddl4m5Z5ddl6m7Z7ddl8m9Z9ddl:m;Z;mZ>m?Z?m@Z@ddlAmBZBddlCmDZDmEZEddlFmGZGe9eHZIGddeZJ d7d8d(ZKd9d)ZL d:d;d0ZMd [package-index-options] ... %prog [options] -r [package-index-options] ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...returnNonec |jtj|jtj|jtj|jtj|jtj|jtj|jddddd|jddd d dd tj |j|jd ddd|jdddt|jddd dd |jddd dd |jtj |jddddd|jddddd gd!"|jd#d$dd%|jd&d'd(dd)|jtj |jtj |jtj|jtj|jtj|jtj|jd*dd+d,d-|jd.dd+d/0|jd1dd2d,d3|jd4dd5d,d6|jtj|jtj|jtj|jtj|jtj|jtjtjtj|j}|jd7||jd7|j|jd8d9d:dd; dS). By default this will not replace existing files/folders in . Use --upgrade to replace existing packages in with new versions.)r2metavarr3r4z--user use_user_sitezInstall to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full details.))r2r1r4z --no-user store_falsez--root root_pathz=Install everything relative to this alternate root directory.z--prefix prefix_patha[Installation prefix where lib, bin and other top-level folders are placed. Note that the resulting installation may contain scripts and other resources which reference the Python interpreter of pip, and not that of ``--prefix``. See also the ``--python`` option if the intention is to install packages into another (possibly pip-free) environment.z-Uz --upgradeupgradezUpgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-strategy used.z--upgrade-strategyupgrade_strategyzonly-if-neededeageraGDetermines how dependency upgrading should be handled [default: %default]. "eager" - dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s). "only-if-needed" - are upgraded only when they do not satisfy the requirements of the upgraded package(s).)r2r3choicesr4z--force-reinstallforce_reinstallz;Reinstall all packages even if they are already up-to-date.z-Iz--ignore-installedignore_installedzIgnore the installed packages, overwriting them. This can break your system if the existing package is of a different version or was installed with a different package manager!z --compilecompileTz'Compile Python source files to bytecodez --no-compilez.Do not compile Python source files to bytecode)r1r2r4z--no-warn-script-locationwarn_script_locationz0Do not warn when installing scripts outside PATHz--no-warn-conflictswarn_about_conflictsz%Do not warn about broken dependenciesrz--reportjson_report_filefileaWGenerate a JSON file describing what pip did to install the provided requirements. Can be used in combination with --dry-run and --ignore-installed to 'resolve' the requirements. When - is used as file name it writes to stdout. When writing to stdout, please combine with the --quiet option to avoid mixing pip logging output with JSON output.)cmd_opts add_optionr requirements constraintsbuild_constraintsno_depspreeditableadd_target_python_optionsrsrcignore_requires_pythonno_build_isolation use_pep517check_build_depsoverride_externally_managedconfig_settings no_binary only_binary prefer_binaryrequire_hashes progress_barroot_user_actionmake_option_group index_groupparserinsert_option_group)self index_optss p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/commands/install.py add_optionszInstallCommand.add_optionsVs   !8!:!:;;;   !7!9!9:::   !=!?!?@@@   !3!5!5666   !1!1222   !4!6!6777   1 !     % !  ,T];;;    % !       !     P !       !     !1!1222    ) !    #$%w/G !     "N !       #4 !    !B!D!DEEE   !>!@!@AAA   !6!8!8999   !!>???   !G!I!IJJJ   !;!=!=>>>   : !       A !      ' 'C !      ! '8 !      !5!7!7888   !7!9!9:::   !9!;!;<<<   !:!!>???1  " K  '':666 ''4=999   #G !     optionsrargs list[str]intc  |jr|jtd|jo|j o|jduo|jduo|jdu}|r|jstd}|j r|j }tj |tj |dtdt!t#|j|j|j|j|j|_d}d}|jrd|_t(j|j|_t(j|jr3t(j|jstdt3d }|j}||||}t9|}|||||j } |t?} t3|j d d } |!||| |} tE|j#} | D] }d|_$ |%| || || |j|j& }|'|| || |j|j|j|j(||j) }|*| |+| |j }|jrtY|j-}|jdkr#t]|/nYta|jdd5}tcj2|/|dddddn #1swxYwY|jrTtgd|j-D}|r-tidd5d|DtlS|7|j89 |:d}|j;du}n#tx$rd}YnwxYwt{|d|j-D}t}|| d\}}|rt||@|}d}|jA o|jB}|r|C|}|jD}|js|jrd}t||j||j||j|jF|jG }t|j||j|j|j!}t|} |JtjLd"#g}!i}"| MD]}#|#jN|"|#jO<|D]M}$|$jP}%|"Qt|%d}&|&r|%d|&}'n|%}'|!S|'N|*|T||U|$d5|!}(|(rtid%|(n[#t$rN})|j&d&k}*t|)|*|j}+tX|+|*'tcYd})~)Sd})~)wwxYw|jr%|sJ|Z|j||j |j[d(krttlS))Nz'Can not combine '--user' and '--target'zto-satisfy-onlyT) check_targetzUsing %s)r;r5r: isolated_modez=Target path exists but is not a directory, will not continue.target)kind)rfsession target_pythonrQinstall)deleternglobally_managed)temp_build_dirrf build_trackerrofinderr8 verbosity) preparerrvrf wheel_cacher8rArQr@r=py_version_info)check_supported_wheels-)datawzutf-8)encodingF)indent ensure_asciic3JK|]}|jd|jdfVdS)nameversionN)metadata.0rs rc z%InstallCommand.run..sI--Z'I)>?------rezWould install %s c3@K|]}d|VdS)r|N)join)ritems rcrz%InstallCommand.run..s, P PD$ P P P P P Prepip) modifying_pipc g|] }|j | S)is_wheelrs rc z&InstallCommand.run..s/!*re)ryverify)roothomeprefixrCr8 pycompiler[)userrrrisolatedr)key)resolver_variantzSuccessfully installed %s)exc_infowarn)]r8r5rr0rEr:r;rUr r<r=r check_build_constraintscheck_dist_restrictionloggerverboser"decide_user_installrlrAospathabspathexistsisdirr& enter_contextget_default_sessionr _build_package_finderrQrno_cleanget_requirementsr cache_dirpermit_editable_wheelsmake_requirement_preparerrw make_resolverr@python_versiontrace_basic_inforesolverrequirements_to_installr to_dictopenjsondumpsortedr%rr prepare_linked_requirements_morerIvaluesget_requirement satisfied_byKeyErrorr#r)rget_installation_orderignore_dependenciesrD_determine_conflictsrCrrBr[get_lib_location_guessesrsortoperator attrgetteriter_all_distributionsrcanonical_namergetrappend_warn_about_conflictsdetermine_resolver_variantOSErrorcreate_os_error_messageerrorr_handle_target_dirr\r$),rarfrg#installing_into_current_environmentr=target_temp_dirtarget_temp_dir_pathrorprvru directoryreqsryreqrxresolverrequirement_setreportfwould_install_itemspip_reqr reqs_to_build_build_failures to_install conflictsshould_warn_about_conflictsrC installed lib_locationsenvsummaryinstalled_versions distributionpackage display_namertextinstalled_descrshow_tracebackmessages, rcrunzInstallCommand.runs   JW%7%CHII I=W%= > ,!T) ,"d* ,#t+ , 0 '7 ' % & & &, ? 8&7 *7333)'EEEEz?#4#4555 3  !+)'!/ ! ! ! 15+/   0'+G $!#1C!D!DG w122 GMM'"455  #S ,:::O#2#7    / / /**733*733 ++'#*#A ,   **+<+>+>?? !''!   c ((wHHD$W%677K  2 2-1**55(+%3.6H))!'%3!(!9'.'E ' 7!1 ' 6*  H  ! !& ) ) )&..1C-C/O' U+O,STT+s22FNN$4$455555g6gNNNURS &.."2"2AaeTTTTUUUUUUUUUUUUUUU &,--,D---''#' * P P??$ % %&| ,001B<1P1PRVWW(*66W66DD'Dt$$$$$**%)%D%DW%M%M+ !XXg..N /"   !^q0N-%G LL>L : : :LLLLLL    " " "?  # #"OW_     #v - -  ! ! !sp,D(Y+N ? Y NYNAY1,YP=3 Y= Q  Y Q  G:Y ZAZZZr5strrr&r<boolc t|g}td|j}|j}|j}|j}t j|r||t j|r||kr||t j|r|||D]y} t j | D]`} | |krDt j ||  t fd|ddDrMt j || } t j| r|st d| t j| rt d| t j| rt!j| nt j| t!jt j | | | b{dS)N)rc3BK|]}|VdSN) startswith)rsddirs rcrz4InstallCommand._handle_target_dir..*s/II!1<<--IIIIIIrezKTarget directory %s already exists. Specify --upgrade to force replacement.zTarget directory %s already exists and is a link. pip will not automatically replace links, please remove if replacement is desired.)r!rrpurelibplatlibr}rrrlistdirranyrwarningislinkrshutilrmtreeremovemove) rar5rr< lib_dir_listscheme purelib_dir platlib_dirdata_dirlib_dirrtarget_item_dirrs @rcrz!InstallCommand._handle_target_dirsL : B_%9:::n n ; 7>>+ & & -    , , , 7>>+ & & -;++E+E    , , , 7>>( # # *    ) ) )# J JG 7++ J Jh&&7<<$77DIIII|CRC7HIIIII! "$',,z4"@"@7>>/223"!>+ !w~~o66!', !w}}_553 o6666 /222 BGLL$77IIII9 J J Jrerlist[InstallRequirement]ConflictDetails | Nonecx t|S#t$rtdYdSwxYw)NzwError while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new)r Exceptionr exception)rars rcrz#InstallCommand._determine_conflictsEsW *:66 6      N   44  s $99conflict_detailsrrc .|\}\}}|s|sdSg}|dkr|dn|dksJ|d|D]A}||d}||D](} |d|d| dd } || )B|D]W}||d}||D]>\} } } d ||| | | |dkrd nd } || ?Xtd|dS)Nlegacyzpip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts. resolvelibzpip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.rrz requires rz, which is not installed.zg{name} {version} requires {requirement}, but {you} have {dep_name} {dep_version} which is incompatible.youzyou'll)rr requirementdep_name dep_versionr )rformatrcriticalr)rarr package_setmissing conflictingparts project_namer dependencyrrrrs rcrz$InstallCommand._warn_about_conflictsQs/?+ +g{ {  F x ' ' LL@     $|3333 LL@   $ & &L!,/2G%l3 & & #..g..A... W%%%%  &( & &L!,/2G.9,.G & &*+sF&%# #% +"2l"B"B  W%%%% &  %(()))))reN)r,r-)rfrrgrhr,ri)r5rrr&r<rr,r-)rr r,r)rrrrr,r-) __name__ __module__ __qualname____doc__usagerdrrrrrrrercr+r+Bs   0E~ ~ ~ ~ @vvv\vp4J4J4J4Jl    0*0*0*0*0*0*rer+Frrr str | Nonerrrr,rhcHtd|||||}|j|jgS)Nr)rrrrr)rrr)rrrrrrs rcrrs;    F NFN ++rec ltdtt||DS)Nc34K|]}t|VdSrr)rds rcrz)site_packages_writable..s>  !rerr)allsetrr-s rcsite_packages_writabler0sF -4(KKKLL  rer8 bool | Noner;r5r:rlc:||stddS|re|rtdtrt dt jst dtddS|J|s|rtd dSt jstd dSt|| rtd dStd dS)aZDetermine whether to do a user install based on the input options. If use_user_site is False, no additional checks are done. If use_user_site is True, it is checked for compatibility with other options. If use_user_site is None, the default behaviour depends on the environment, which is provided by the other arguments. Nz$Non-user install by explicit requestFzVCan not combine '--user' and '--prefix' as they imply different installation locationszZCan not perform a '--user' install. User site-packages are not visible in this virtualenv.zTCan not perform a '--user' install. User site-packages are disabled for this Python.z User install by explicit requestTz3Non-user install due to --prefix or --target optionz4Non-user install because user site-packages disabledr-z0Non-user install because site-packages writeablezMDefaulting to user installation because normal site-packages is not writeable) rdebugrr(rsiteENABLE_USER_SITEr0info)r8r;r5r:rls rcrrsb" !M! ;<<<u  3  ! ! #6  $ #0   7888t  j JKKKu   KLLLu9}EEE GHHHu KK  4rerrrusing_user_sitercg}|d|s8|d|t|n|d|dxxdz cc<|jtjkrid}d}t s-|s+||d|gn|||d t|tur*|d |d tr|jtj tj fvry|j rrtd t|j jDr|d t!|j d kr|dd|dzS)zrFormat an error message for an OSError It may occur anytime during the execution of the install command. z,Could not install packages due to an OSErrorz: .rrz"Consider using the `--user` optionzCheck the permissionsz or z. zHConsider checking your local proxy configuration with "pip config debug"c3<K|]}t|dkVdS)N)len)rparts rcrz*create_os_error_message..s,FF4s4yy3FFFFFFrezHINT: This error might be caused by a file or folder name exceeding 255 characters, which is a Windows limitation even if long paths are enabled. izHINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths r)rrerrnoEACCESr'extendlowertyperrEINVALENOENTfilenamerrr r<rstrip)rrr7r user_option_partpermissions_parts rcrrs E LL?@@@  T SZZ     S "IIIIII {el""?2')) +/ + LL$$**,,     LL) * * * U E{{o%% V     U5;5<">>>5>> FF4+?+?+EFFF F F  LL"    u~   $ $ LLC    775>>   ! !D ((re)FNNFN) rrrr(rr(rrrr(r,rh)rr(rrr,r)NNNF) r8r1r;r(r5r(r:r(rlrr,r)rrrrr7rr,r)O __future__rr>rrrrr4optparserrpathlibrpip._vendor.packaging.utilsrpip._vendor.requests.exceptionsrpip._vendor.richr !pip._internal.self_outdated_checkrpip._internal.cacher pip._internal.clir pip._internal.cli.cmdoptionsr pip._internal.cli.req_commandr rpip._internal.cli.status_codesrrpip._internal.exceptionsrrrpip._internal.locationsrpip._internal.metadatar(pip._internal.models.installation_reportr,pip._internal.operations.build.build_trackerrpip._internal.operations.checkrrpip._internal.reqrpip._internal.req.req_installrpip._internal.utils.compatrpip._internal.utils.filesystemrpip._internal.utils.loggingrpip._internal.utils.miscr r!r"r#r$r%pip._internal.utils.temp_dirr&pip._internal.utils.virtualenvr'r(pip._internal.wheel_builderr)r#rr+rr0rrrrercrds""""""  ********999999;;;;;;'''''')(((******((((((;;;;;;:9999999 /.....222222GGGGGGJJJJJJSSSSSSSS000000/.....<<<<<<111111766666.----- 8  *****'***F ,,,,,$#!  BBBBBJA)A)A)A)A)A)re