On Python 3.10, PYVER is py310 which wrongly matches the original 'py27' <= PYVER < 'py32' condition. Replace it with explicit match against known Python versions in this range. This is probably the simplest and the most future-proof solution to the problem at hand.
On Python 3.10,
PYVER
ispy310
which wrongly matches the original'py27' <= PYVER < 'py32'
condition. Replace it with explicit match against known Python versions in this range. This is probably the simplest and the most future-proof solution to the problem at hand.