summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-03-17 19:59:26 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-03-17 19:59:26 (GMT)
commit898f099dc61c3efbaa28cc727f5dbfd773d38444 (patch)
treec7a6fb7279105c3342dc5e73b581b9dd164a456e /Lib/distutils/dist.py
parent9b5abcd48c3f2277c8c328ff7d2db26b272618c5 (diff)
downloadcpython-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/dist.py')
-rw-r--r--Lib/distutils/dist.py4
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__ ()