-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow non-file:// paths to serve as
--index-url
values (#4524)
## Summary pip allows these with the following logic: ```python if os.path.exists(location): # Is a local path. url = path_to_url(location) path = location elif location.startswith("file:"): # A file: URL. url = location path = url_to_path(location) elif is_url(location): url = location ``` Closes #4510. ## Test Plan `cargo run pip install --index-url ../packse/index/simple-html/ example-a-961b4c22 --reinstall --no-cache --no-deps`
- Loading branch information
1 parent
3379e4c
commit e39f5f7
Showing
1 changed file
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters