Skip to content

Commit 69776f2

Browse files
committed
Don't swallow failures when executing pip
1 parent 5a42344 commit 69776f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def install_wheel(project_names, py_executable, search_dirs=None):
942942

943943
cmd = [
944944
py_executable, '-c',
945-
'import sys, pip; pip.main(["install", "--ignore-installed"] + sys.argv[1:])',
945+
'import sys, pip; sys.exit(pip.main(["install", "--ignore-installed"] + sys.argv[1:]))',
946946
] + project_names
947947
logger.start_progress('Installing %s...' % (', '.join(project_names)))
948948
logger.indent += 2

0 commit comments

Comments
 (0)