\h"ldZddlZddlZddlZddlZddlZddlZddlZddlmZddl m Z m Z m Z m Z mZddlmZddlmZddlmZddlmZmZdd lmZmZmZmZdd lmZmZm Z m!Z!m"Z"m#Z#m$Z$dd l%m&Z&dd l'm(Z(m)Z)dd l*m+Z+m,Z,ddl-m.Z/ddl-m0Z0m1Z1ddl2m3Z3dgZ4ejje6Z7GddeZ8y)z(Base Command class, and related routinesN)Values)AnyCallableListOptionalTuple) traceback) cmdoptions)CommandContextMixIn)ConfigOptionParserUpdatingDefaultsHelpFormatter)ERRORPREVIOUS_BUILD_DIR_ERROR UNKNOWN_ERRORVIRTUALENV_NOT_FOUND) BadCommand CommandErrorDiagnosticPipErrorInstallationErrorNetworkConnectionErrorPreviousBuildDirErrorUninstallationError)check_path_owner)BrokenStdoutLoggingError setup_logging)get_prognormalize_path)TempDirectoryTypeRegistry)global_tempdir_managertempdir_registry)running_under_virtualenvCommandc eZdZUdZeed<dZeed<ddedededd ffd Zdd Z d e dd fd Z d e de ede fdZde edee e effdZde ede fdZde ede fdZxZS)r"usageFignore_require_venvnamesummaryisolatedreturnNc t|||_||_t |j t d|td||j||_ d|_ |jjd}tj|j||_tj tj"|j}|jj%||j'y)N F)r%prog formatteradd_help_optionr' descriptionr)z Options)super__init__r'r(r r%rr __doc__parserr capitalizeoptparse OptionGroupcmd_optsr make_option_group general_groupadd_option_group add_options)selfr'r(r) optgroup_namegen_opts __class__s a/root/niggaflix-v3/playground/venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.pyr2zCommand.__init__1s   (**JrVtA|j>|_tC|j>s'tjd |j>d|_d tDd tFfdtDd tFfffd } |jHs||jJ}n"|jJ}tMjNd||||jQ|S#|jQ|wxYw)N) verbosityno_color user_log_filez/The following features are always enabled: %s. z, _PIP_RUNNING_IN_SUBPROCESSzAThe --python option must be placed before the pip subcommand name1 PIP_NO_INPUTr,PIP_EXISTS_ACTIONz2Could not find an activated virtualenv (required).zThe directory '%s' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.run_func.r*c`tjdtdtffd }|S)NrKr*c4 |}t|tsJ|S#t$rA}tj d|dditj ddt cYd}~Sd}~wt$rE}tjt|tj ddtcYd}~Sd}~wttttf$rE}tjt|tj ddt cYd}~Sd}~wt$r=}tjd|tj ddt cYd}~Sd}~wt $r[t#dt$j&t(j*kr$t-j.t$j&t cYSt0$r5tjd tj ddt cYSt2$r tjd dt4cYSwxYw) Nz%srichT)extrazException information:)exc_infoz ERROR: Pipe to stdout was broken)filezOperation cancelled by userz Exception:) isinstanceintrloggererrordebugrrcriticalstrrrrrrrrprintsysstderrrUDEBUGr print_excKeyboardInterrupt BaseExceptionr)rKstatusexc level_numberr`s rAexc_logging_wrapperzLCommand._main..intercepts_unhandled_exc..exc_logging_wrappers-)%t_F%fc222!M)!LLs64.LALL!9DLI L,4OOCH-LL!9DLI33%'*  ! OOCH-LL!9DLI L#!OOD#.LL!9DLI L/!<3::N#w}}4!++< L(!OO$ABLL!9DLI L$)OOL4O@(()sc H6A!H! H-:B-'H-H :D H H2E H A$H3:H/%HH) functoolswrapsrrh)r`rxrws` rAintercepts_unhandled_excz/Command._main..intercepts_unhandled_excs7__X &. )3. )3. )'. )`' &rBT) show_locals)) enter_contextr rrPverbosequietrYrrZlogsetfeatures_enabledr ALWAYS_ENABLED_FEATURESriwarningjoinsortedpythonosenvironrlroexitrno_input exists_action require_venvr&r!r cache_dirrrrrh debug_moderNrich_tracebackinstallrJ)r=rKrFalways_enabled_featuresr{rNrws @rArTz Command._mainis<!% 2 23C3E F 134- !7==8$nn%%!++ #&g&>&>"?#  . .C #  # NNA &!89:  >>:"**L OOS  HHUO   ),BJJ~ &  .1hhw7L7L.MBJJ* +   (@(@+- TU-.    .w/@/@ AG #G$5$56* %% %)!4 'sCx(4 ' c3h 4 'l 3%%.txx8hh&&48w%  ) )' 2D ) )' 2s 0A K K)F)r*N)__name__ __module__ __qualname__r%rm__annotations__r&boolr2r<rrJrrhrNrrPrWrT __classcell__)r@s@rAr"r"-sE3O %%S3$4< 0040"6"c"s",tCy,U6493D-E,csC3$s)C3C3rB)9r3ryrUlogging.configr6rror rtypingrrrrrpip._vendor.richrpip._internal.clir !pip._internal.cli.command_contextr pip._internal.cli.parserr r pip._internal.cli.status_codesrrrrpip._internal.exceptionsrrrrrrrpip._internal.utils.filesystemrpip._internal.utils.loggingrrpip._internal.utils.miscrrpip._internal.utils.temp_dirrTempDirRegistryrr pip._internal.utils.virtualenvr!__all__ getLoggerrrir"rErBrArs. 778(AV <O=UQC +   8 $3!3rB