Skip to content

Commit 97c2d73

Browse files
Enforce file:/// scheme and no netloc [integration]
1 parent ce93c45 commit 97c2d73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

micropip/wheelinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def from_url(cls, url: str) -> "WheelInfo":
7070
"""
7171
parsed_url = urlparse(url)
7272
if not parsed_url.scheme:
73+
url = "file:///" + url
7374
parsed_url = ParseResult(
7475
scheme="file",
7576
netloc=parsed_url.netloc,

0 commit comments

Comments
 (0)