fix trusted host bug

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-27 09:27:01 -04:00
parent 36d409b9aa
commit 8034a4e8bf
+1 -1
View File
@@ -1257,7 +1257,7 @@ def pip_install(
f.write(package_name)
# Install dependencies when a package is a VCS dependency.
if [x for x in requirements.parse(package_name.split('--hash')[0])][0].vcs:
if [x for x in requirements.parse(package_name.split('--hash')[0].split('--trusted-host')[0])][0].vcs:
no_deps = False
# Don't specify a source directory when using --system.