From 5758231bc404ed58ff72fb9942717e0b070f318d Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Sun, 13 Nov 2022 16:42:01 +0100 Subject: [PATCH] core: remove yaspin spinner from install python This is in favor of rich.status --- pipenv/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index f19de6b7..82356724 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -404,17 +404,18 @@ def ensure_python(project, three=None, python=None): click.style("...", bold=True), ) ) - with create_spinner("Installing python...", project.s) as sp: + # TOOD: pass project settings to console.status + with console.status("Installing python...") as st: try: c = installer.install(version) except InstallerError as e: - sp.fail( + err.print( environments.PIPENV_SPINNER_FAIL_TEXT.format("Failed...") ) click.echo(fix_utf8("Something went wrong..."), err=True) click.secho(e.err, fg="cyan", err=True) else: - sp.ok(environments.PIPENV_SPINNER_OK_TEXT.format("Success!")) + st(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