7fdZddlZddlZddlZddlmZmZmZddlm Z ddl m Z ddl m Z mZddlmZmZddlmZdd lmZmZd d gZd e fd Zded eefdZdeed eeeeffdZdS)z=A single place for constructing and exposing the main parser N)ListOptionalTuple)get_runnable_pip) cmdoptions)ConfigOptionParserUpdatingDefaultsHelpFormatter) commands_dictget_similar_commands) CommandError)get_pip_versionget_progcreate_main_parser parse_commandreturnctddtdt}|t |_t jt j|}| |d|_ dgdtj Dz}d ||_|S) z1Creates and returns the main parser for pip's CLIz %prog [options]Fglobal)usageadd_help_option formatternameprogTc.g|]\}}|dd|jS)27 )summary).0r command_infos }/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/main_parser.py z&create_main_parser..)s@ D, +++\)++ )rr rdisable_interspersed_argsr versionrmake_option_group general_groupadd_option_groupmainr itemsjoin description)parsergen_optsr,s r rrs +/11  ZZ F $$&&&$&&FN+J,DfMMH H%%%FK$"/"5"7"7K;//F Mr"pythonctj|rjtj|rIdD]E}tj||}tj|r|cSFn|SdS)N)z bin/pythonzScripts/python.exe)ospathexistsisdirr+)r/exepys r identify_python_interpreterr72s w~~f  7==  <  W\\&#..7>>"%%III  M 4r"argscrt}||\}}|jrdtjvrt |j}|t d|j|tg}||dtjd<d} tj |}|j }n3#tj tf$r}t d|d|d}~wwxYwtj||jr`tj|jtjtjtj|r|ddkr:t)|dkr'|tj|d} | t,vrSt/| } d | d g} | r| d | d t d | |dd} | | | | fS) N_PIP_RUNNING_IN_SUBPROCESSz$Could not locate Python interpreter 1rzFailed to run pip under z: helpzunknown command ""zmaybe you meant "z - )r parse_argsr/r1environr7r rextend subprocessrun returncodeSubprocessErrorOSErrorsysexitr%stdoutwritelineseplen print_helpr r appendr+remove) r8r-general_options args_else interpreterpip_cmdrDprocexccmd_nameguessmsgcmd_argss r rrEsY  ! !F"(!2!24!8!8OY">bj"P"P1/2HII  O7MOO       t47 /0  P>'**DJJ*G4 P P PN+NNNNOO O P  ((( $$$   1//C NNa4G4G  |H}$$$X...8.../  5 JJ35333 4 4 45::c??+++AAAwH OOH X s B<<C,C''C,)__doc__r1rBrGtypingrrrpip._internal.build_envrpip._internal.clirpip._internal.cli.parserrr pip._internal.commandsr r pip._internal.exceptionsr pip._internal.utils.miscr r__all__rstrr7rr"r res\  ((((((((((444444((((((VVVVVVVVFFFFFFFF111111>>>>>>>>  1.> &AS AeCcN&;AAAAAAr"