Skip to content

Commit

Permalink
Merge pull request #5513 from pypa/fix-5507
Browse files Browse the repository at this point in the history
core: fix bug introduced with rich.console
  • Loading branch information
matteius authored Nov 30, 2022
2 parents c6441f8 + 1e60aed commit 88ffc3d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,9 @@ def abort(msg=""):
click.style("...", bold=True),
)
)
# TOOD: pass project settings to console.status
with console.status("Installing python...") as st:
with console.status(
"Installing python...", spinner=project.s.PIPENV_SPINNER
):
try:
c = installer.install(version)
except InstallerError as e:
Expand All @@ -416,7 +417,9 @@ def abort(msg=""):
click.echo(fix_utf8("Something went wrong..."), err=True)
click.secho(e.err, fg="cyan", err=True)
else:
st(environments.PIPENV_SPINNER_OK_TEXT.format("Success!"))
console.print(
environments.PIPENV_SPINNER_OK_TEXT.format("Success!")
)
# Print the results, in a beautiful blue...
click.secho(c.stdout, fg="cyan", err=True)
# Clear the pythonfinder caches
Expand Down

0 comments on commit 88ffc3d

Please sign in to comment.