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.
ParseResult
1 parent 525a9b0 commit f8d79dfCopy full SHA for f8d79df
micropip/wheelinfo.py
@@ -69,15 +69,13 @@ 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
+
73
+ # If parsed_url has no scheme, then add file:// to
74
+ # the URL and parse it again
75
if not parsed_url.scheme:
- parsed_url = ParseResult(
- scheme="file",
- 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
- )
+ url = "file:///" + url
+ parsed_url = urlparse(url)
81
file_name = Path(parsed_url.path).name
82
name, version, build, tags = parse_wheel_filename(file_name)
83
return WheelInfo(
0 commit comments