We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f33b4 commit 6690159Copy full SHA for 6690159
micropip/wheelinfo.py
@@ -69,8 +69,15 @@ def from_url(cls, url: str) -> "WheelInfo":
69
See https://www.python.org/dev/peps/pep-0427/#file-name-convention
70
"""
71
parsed_url = urlparse(url)
72
- if parsed_url.scheme == "":
73
- url = "file:///" + url
+ if not parsed_url.scheme:
+ parsed_url = ParseResult(
74
+ scheme="file",
75
+ netloc=parsed_url.netloc,
76
+ path=parsed_url.path,
77
+ params=parsed_url.params,
78
+ query=parsed_url.query,
79
+ fragment=parsed_url.fragment,
80
+ )
81
file_name = Path(parsed_url.path).name
82
name, version, build, tags = parse_wheel_filename(file_name)
83
return WheelInfo(
0 commit comments