Commit 60ece8fa authored by Xavier Thompson's avatar Xavier Thompson

[tmp] Raise exception when pip fails

parent 8b27e19d
......@@ -1871,15 +1871,7 @@ def call_pip_install(spec, dest, options):
sys.stdout.flush() # We want any pending output first
exit_code = subprocess.call(list(args), env=env)
if exit_code:
logger.error(
"An error occurred when trying to install %s. "
"Look above this message for any errors that "
"were output by pip install.",
spec)
sys.exit(1)
subprocess.check_call(list(args), env=env)
split_entries = [os.path.splitext(entry) for entry in os.listdir(dest)]
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment