mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Bug #409403: Signal an error if the distribution's metadata has no version
This commit is contained in:
parent
9b5abcd48c
commit
898f099dc6
1 changed files with 4 additions and 0 deletions
|
@ -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__ ()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue