def _install_requirements(session, transport, *extra_requirements, requirements_type='ci'):
    if (not _upgrade_pip_setuptools_and_wheel(session)):
        return
    requirements_file = _get_pip_requirements_file(session, transport, requirements_type=requirements_type)
    install_command = ['--progress-bar=off', '-r', requirements_file]
    session.install(*install_command, silent=PIP_INSTALL_SILENT)
    if extra_requirements:
        install_command = ['--progress-bar=off']
        install_command += list(extra_requirements)
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    if EXTRA_REQUIREMENTS_INSTALL:
        session.log('Installing the following extra requirements because the EXTRA_REQUIREMENTS_INSTALL environment variable was set: %s', EXTRA_REQUIREMENTS_INSTALL)
        install_command = ['--progress-bar=off', '--constraint', requirements_file]
        install_command += EXTRA_REQUIREMENTS_INSTALL.split()
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
def _install_requirements(session, transport, *extra_requirements, requirements_type='ci'):
    if (not _upgrade_pip_setuptools_and_wheel(session)):
        return
    requirements_file = _get_pip_requirements_file(session, transport, requirements_type=requirements_type)
    install_command = ['--progress-bar=off', '-r', requirements_file]
    session.install(*install_command, silent=PIP_INSTALL_SILENT)
    if extra_requirements:
        install_command = ['--progress-bar=off']
        install_command += list(extra_requirements)
        session.install(*install_command, silent=PIP_INSTALL_SILENT)
    if EXTRA_REQUIREMENTS_INSTALL:
        session.log('Installing the following extra requirements because the EXTRA_REQUIREMENTS_INSTALL environment variable was set: %s', EXTRA_REQUIREMENTS_INSTALL)
        install_command = ['--progress-bar=off', '--constraint', requirements_file]
        install_command += EXTRA_REQUIREMENTS_INSTALL.split()
        session.install(*install_command, silent=PIP_INSTALL_SILENT)