[Distutils] version_info

Éric Araujo merwok at netwok.org
Sun Apr 22 07:28:12 CEST 2012


Hello,

> Could anyone tell me why distutils and distutils2 do NOT have
> available 'version_info'?  I have to use '__version__' to get their
> version information ...
__version__ is semi-standard and version_info even less.  PEP 396
attempts to improve this but is not accepted yet.  Anyway if you want to
do comparisons (which I assume is the reason you want a version_info)
you can just use __version__ with the
distutils2.version.NormalizedVersion class.

Regards


More information about the Distutils-SIG mailing list