Make Python version PEP440 compliant
Python versions like 0.1.49ubuntu1
or 0.1.49~bpo11+1
are not PEP440
compliant. With setuptools 66, the versions of all packages visible in
the Python environment must obey PEP440.
Bug: https://github.com/pypa/setuptools/issues/3772
Bug-Ubuntu: https://launchpad.net/bugs/1991606