mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
Improve error message for "setup.py upload" without dist files (#21060)
This commit is contained in:
parent
3fb813d2c6
commit
08a6926b25
2 changed files with 5 additions and 1 deletions
|
@ -57,7 +57,8 @@ class upload(PyPIRCCommand):
|
|||
|
||||
def run(self):
|
||||
if not self.distribution.dist_files:
|
||||
msg = "No dist file created in earlier command"
|
||||
msg = ("Must create and upload files in one command "
|
||||
"(e.g. setup.py sdist upload)")
|
||||
raise DistutilsOptionError(msg)
|
||||
for command, pyversion, filename in self.distribution.dist_files:
|
||||
self.upload_file(command, pyversion, filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue