Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53250

Evaluate consequences of using upgraded pip in virtual environment and pip's new dependency resolver

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0, 4.4.3
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.9, v4.4
    • Sprint:
      STM 2020-12-14, STM 2021-04-05
    • Linked BF Score:
      0
    • Story Points:
      3

      Description

      The 4.2, 4.4, and master branches all use python -m venv and not python -m virtualenv to create the virtual environment. The venv package comes with Python3.

      This leads to pip 10.0.1 from Python 3.7.0's ensurepip to be used to download Python packages on the 4.2 and 4.4 branches. The changes from 3c179e4 as part of SERVER-49504 cause pip 10.0.1 to be upgraded to the latest version (20.3.1 as of today). Versions of pip 20.3 and newer use a new dependency resolver by default.

      # /opt/mongodbtoolchain/v3/bin/python3 -m ensurepip --version
      pip 10.0.1
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              robert.guo Robert Guo
              Reporter:
              max.hirschhorn Max Hirschhorn
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: