mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Warn when dropping index URL value to directory
This commit is contained in:
parent
356dc432f7
commit
8dcae5ba48
1
news/5827.feature
Normal file
1
news/5827.feature
Normal file
|
@ -0,0 +1 @@
|
|||
A warning message is emitted when dropping an ``--[extra-]index-url`` value that points to an existing local directory.
|
|
@ -216,6 +216,11 @@ class PackageFinder(object):
|
|||
sort_path(os.path.join(path, item))
|
||||
elif is_file_url:
|
||||
urls.append(url)
|
||||
else:
|
||||
logger.warning(
|
||||
"Path '{0}' is ignored: "
|
||||
"it is a directory.".format(path),
|
||||
)
|
||||
elif os.path.isfile(path):
|
||||
sort_path(path)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue