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

Support python 3

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 4.1.10
    • Component/s: Build, Packaging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Dev Tools 2019-03-11, Dev Tools 2019-03-25, Dev Tools 2019-04-08, Dev Tools 2019-04-22
    • Linked BF Score:
      0

      Description

      Hi,
      python2 is closing to end of its life - https://pythonclock.org/ . MongoDB relases has about 2 years life cycle, so it would be great to switch to python3.

      Scons 3.0 now support python3. So it this change is possible now.

      I've attached a patch to add python3 support for MongoDB building and testing. It is not ideal patch - most of it is done using 2to3 utility and probably some parts will be unnecessary (explicit creating of lists from iterable objects, binary files and encoding,...). But I didn't want to create big changes in code now.

      Not all can be done with python3 with this patch. Some generators and similar scripts still use python2. I can help with converting them.

      It would be great to see python3 support in MongoDB build scripts.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathew.robinson Mathew Robinson (Inactive)
              Reporter:
              mskalick Marek Skalický
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: