From: Andrew M. Kuchling Date: Sat, 17 Mar 2001 19:59:26 +0000 (+0000) Subject: Bug #409403: Signal an error if the distribution's metadata has no version X-Git-Tag: v2.1b2~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=898f099dc61c3efbaa28cc727f5dbfd773d38444;p=thirdparty%2FPython%2Fcpython.git Bug #409403: Signal an error if the distribution's metadata has no version --- diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 41d5dbbc0b38..6bda869e2e8e 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -206,6 +206,10 @@ class Distribution: raise DistutilsSetupError, \ "invalid distribution option '%s'" % key + if self.metadata.version is None: + raise DistutilsSetupError, \ + "No version number specified for distribution" + # __init__ ()