mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-21 13:41:04 -05:00
fix(install-poetry): check for returncode when pip installing Poetry (#4425)
This commit is contained in:
parent
04120853ef
commit
0e3b144488
1 changed files with 5 additions and 4 deletions
|
@ -439,8 +439,9 @@ class Installer:
|
|||
try:
|
||||
self.install(version)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(colorize("error", "An error has occured: {}".format(str(e))))
|
||||
print(e.output.decode())
|
||||
print(
|
||||
colorize("error", f"\nAn error has occurred: {e}\n{e.stderr.decode()}")
|
||||
)
|
||||
|
||||
return e.returncode
|
||||
|
||||
|
@ -583,8 +584,8 @@ class Installer:
|
|||
|
||||
subprocess.run(
|
||||
[str(python), "-m", "pip", "install", specification],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
capture_output=True,
|
||||
check=True,
|
||||
)
|
||||
|
||||
def display_pre_message(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue