Commit 6a7d2539 authored by Xavier Thompson's avatar Xavier Thompson

[feat] Raise an exception when pip fails

Before this, sys.exit(1) was called to terminate the program directly.
parent f0929184
...@@ -1718,15 +1718,7 @@ def call_pip_wheel(spec, dest): ...@@ -1718,15 +1718,7 @@ def call_pip_wheel(spec, dest):
sys.stdout.flush() # We want any pending output first sys.stdout.flush() # We want any pending output first
exit_code = subprocess.call(list(args), env=env) subprocess.check_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)
entries = os.listdir(dest) entries = os.listdir(dest)
try: 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