On Tue, Nov 17, 2009 at 2:04 PM, M.-A. Lemburg <m...@egenix.com> wrote: > Floris Bruynooghe wrote: >> On Mon, Nov 16, 2009 at 11:55:44AM +0100, M.-A. Lemburg wrote: >>> Tarek Ziadé wrote: >>> One detail to add: >>> >>> python_full_version = sys.version.split()[0] >>> >>> This is important, since a package may well only support Python >>> 2.5 starting with patch level release 2.5.2 and python_version >>> only includes the major.minor version information. >> >> I still like hex(sys.hexversion) for this. IIRC this is what the docs >> recommend to use inside python code too for checking versions. > > Fine with me, but that format doesn't work too well with the > (new) standard for distutils version numbers which is supposed > to be used for these version comparisons.
+1 Using sys.hexversion would bypass the PEP 386-compatible standard we want to provide. (I am adding python_full_version in the PEP btw) Tarek _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig