diff --git a/news/6804.bugfix b/news/6804.bugfix new file mode 100644 index 00000000000..db6a536e409 --- /dev/null +++ b/news/6804.bugfix @@ -0,0 +1 @@ +Make the --find-links option for install command expand tilde to the user's home directory. diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cmdoptions.py index ecf4d20bcd6..a41da4c59e7 100644 --- a/src/pip/_internal/cli/cmdoptions.py +++ b/src/pip/_internal/cli/cmdoptions.py @@ -370,7 +370,7 @@ def make_search_scope(options, suppress_no_index=False): ) index_urls = [] - search_scope = SearchScope( + search_scope = SearchScope.create( find_links=options.find_links, index_urls=index_urls, )