mirror of https://github.com/pypa/pip
Show full list of supported VCS scheme in error message
When an editable requirement is neither a local directory nor a URL with a supported VCS scheme, we show the full list of supported VCS schemes in the error message.
This commit is contained in:
parent
78b891a6d1
commit
7ee22ba995
|
@ -118,7 +118,7 @@ def parse_editable(editable_req):
|
|||
link = Link(url)
|
||||
|
||||
if not link.is_vcs:
|
||||
backends = ", ".join(f"{backend.name}+" for backend in vcs.backends)
|
||||
backends = ", ".join(vcs.all_schemes)
|
||||
raise InstallationError(
|
||||
f'{editable_req} is not a valid editable requirement. '
|
||||
f'It should either be a path to a local project or a VCS URL '
|
||||
|
|
Loading…
Reference in New Issue