From 898f099dc61c3efbaa28cc727f5dbfd773d38444 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 17 Mar 2001 19:59:26 +0000 Subject: Bug #409403: Signal an error if the distribution's metadata has no version --- Lib/distutils/dist.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 41d5dbb..6bda869 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__ () -- cgit v0.12