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.
- is related to
-
SERVER-11367 The buildsystem doesn't support python 3.x
- Closed
-
SERVER-52687 MongoDB 4.0 - building with Python 3
- Closed
- related to
-
SERVER-42623 sched module in Python 3 causes close() event to mistakenly be canceled, leading to resmoke.py hang
- Closed
- links to