mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Improve message when no listed files are found from PKG-INFO (#5515)
This commit is contained in:
parent
a6ea0dd62a
commit
bcd9db92bc
2 changed files with 3 additions and 4 deletions
1
news/5381.bugfix
Normal file
1
news/5381.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Improve error message to be more specific when no files are found as listed in as listed in PKG-INFO.
|
|
@ -717,11 +717,9 @@ class InstallRequirement(object):
|
|||
|
||||
if not filenames:
|
||||
raise InstallationError(
|
||||
'No files/directories in %s (from %s)' % (base, filename)
|
||||
"Files/directories (from %s) not found in %s"
|
||||
% (filename, base)
|
||||
)
|
||||
assert filenames, \
|
||||
"No files/directories in %s (from %s)" % (base, filename)
|
||||
|
||||
# if we have more than one match, we pick the toplevel one. This
|
||||
# can easily be the case if there is a dist folder which contains
|
||||
# an extracted tarball for testing purposes.
|
||||
|
|
Loading…
Reference in a new issue