Skip to content

Commit 7ee22ba

Browse files
committed
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.
1 parent 78b891a commit 7ee22ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/req/constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def parse_editable(editable_req):
118118
link = Link(url)
119119

120120
if not link.is_vcs:
121-
backends = ", ".join(f"{backend.name}+" for backend in vcs.backends)
121+
backends = ", ".join(vcs.all_schemes)
122122
raise InstallationError(
123123
f'{editable_req} is not a valid editable requirement. '
124124
f'It should either be a path to a local project or a VCS URL '

0 commit comments

Comments
 (0)