[Python-checkins] r50978 - in python/trunk: Lib/distutils/__init__.py Misc/NEWS
Nick Coghlan
ncoghlan at gmail.com
Sun Jul 30 15:26:12 CEST 2006
martin.v.loewis wrote:
> Author: martin.v.loewis
> Date: Sun Jul 30 15:14:05 2006
> New Revision: 50978
>
> Modified:
> python/trunk/Lib/distutils/__init__.py
> python/trunk/Misc/NEWS
> Log:
> Base __version__ on sys.version_info, as distutils is
> no longer maintained separatedly.
>
>
> Modified: python/trunk/Lib/distutils/__init__.py
> ==============================================================================
> --- python/trunk/Lib/distutils/__init__.py (original)
> +++ python/trunk/Lib/distutils/__init__.py Sun Jul 30 15:14:05 2006
> @@ -12,4 +12,6 @@
>
> __revision__ = "$Id$"
>
> -__version__ = "2.5.0"
> +import sys
> +__version__ = "%d.%d.%d" % sys.version_info[:3]
> +del sys
Won't this give a wrong answer if someone runs a mismatched distutils version?
e.g. distutils 2.5.0 would claim to be distutils 2.4.3 if you ran it with the
latest 2.4 release.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-checkins
mailing list