a  ze @sddlZddlZddlmZmZmZmZmZddlm Z ddl m Z ddl m Z ddlmZgdZeeZGd d d Zee eeee fd d d Zee eeeeeeeeeeeeeeed ddZdS)N)IteratorListOptionalSequenceTuple) indent_log)parse_requirements)InstallRequirement)RequirementSet)r r r install_given_reqsc@s*eZdZeddddZedddZdS)InstallationResultN)namereturncCs ||_dS)Nr)selfrr\/opt/bitninja-python-dojo/embedded/lib/python3.9/site-packages/pip/_internal/req/__init__.py__init__szInstallationResult.__init__)rcCsd|jdS)NzInstallationResult(name=)r)rrrr__repr__szInstallationResult.__repr__)__name__ __module__ __qualname__strrrrrrrr sr ) requirementsrccs.|D]$}|jsJd||j|fVqdS)Nz%invalid to-be-installed requirement: r)rreqrrr_validate_requirementssr) rinstall_optionsglobal_optionsroothomeprefixwarn_script_location use_user_site pycompilerc  Cstt|} | r(tdd| g} t| D]\} } | j rtd| t| j dd} Wdq1s~0Ynd} z| j ||||||||dWn&t y| r| j s| Yn0| r| j r| | t| qs.