diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-03-17 19:59:26 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-03-17 19:59:26 (GMT) |
commit | 898f099dc61c3efbaa28cc727f5dbfd773d38444 (patch) | |
tree | c7a6fb7279105c3342dc5e73b581b9dd164a456e /Lib/distutils | |
parent | 9b5abcd48c3f2277c8c328ff7d2db26b272618c5 (diff) | |
download | cpython-898f099dc61c3efbaa28cc727f5dbfd773d38444.zip cpython-898f099dc61c3efbaa28cc727f5dbfd773d38444.tar.gz cpython-898f099dc61c3efbaa28cc727f5dbfd773d38444.tar.bz2 |
Bug #409403: Signal an error if the distribution's metadata has no version
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/dist.py | 4 |
1 files changed, 4 insertions, 0 deletions
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__ () |