Skip to content

Commit 88ffc3d

Browse files
authored
Merge pull request #5513 from pypa/fix-5507
core: fix bug introduced with rich.console
2 parents c6441f8 + 1e60aed commit 88ffc3d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pipenv/core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,9 @@ def abort(msg=""):
405405
click.style("...", bold=True),
406406
)
407407
)
408-
# TOOD: pass project settings to console.status
409-
with console.status("Installing python...") as st:
408+
with console.status(
409+
"Installing python...", spinner=project.s.PIPENV_SPINNER
410+
):
410411
try:
411412
c = installer.install(version)
412413
except InstallerError as e:
@@ -416,7 +417,9 @@ def abort(msg=""):
416417
click.echo(fix_utf8("Something went wrong..."), err=True)
417418
click.secho(e.err, fg="cyan", err=True)
418419
else:
419-
st(environments.PIPENV_SPINNER_OK_TEXT.format("Success!"))
420+
console.print(
421+
environments.PIPENV_SPINNER_OK_TEXT.format("Success!")
422+
)
420423
# Print the results, in a beautiful blue...
421424
click.secho(c.stdout, fg="cyan", err=True)
422425
# Clear the pythonfinder caches

0 commit comments

Comments
 (0)