Remove support for Python 2
Closes: #25789 (closed)
Python 2 died one year ago so let's only support the currently supported versions of CPython: https://devguide.python.org/#status-of-python-branches
Roughly corresponds with nodejs/node-gyp#2300 and nodejs/gyp-next#88
There is much more that could be done to simplify and modernize code paths given that Python 2 support is removed but this represents a solid start that disables booting under end-of-life versions of Python.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines