[Distutils] PEP 345 update + RFC on "Requires-External" and "Requires-Python"

Floris Bruynooghe floris.bruynooghe at gmail.com
Mon Nov 16 19:22:22 CET 2009


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.

Regards
Floris

-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org


More information about the Distutils-SIG mailing list