Skip to content

Commit

Permalink
Show full list of supported VCS scheme in error message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sbidoul committed Jan 17, 2021
1 parent cde47b7 commit b29024e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/req/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down

0 comments on commit b29024e

Please sign in to comment.