mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
Added a new function run_install_with_spinner
to handle the pip installation process with a spinner.
This commit is contained in:
parent
af8dff8714
commit
6c2a168327
1 changed files with 5 additions and 1 deletions
|
@ -190,6 +190,9 @@ def pip_install(args):
|
|||
]
|
||||
cmd += args
|
||||
|
||||
run_install_with_spinner(cmd)
|
||||
|
||||
def run_install_with_spinner(cmd):
|
||||
try:
|
||||
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1, universal_newlines=True)
|
||||
output = []
|
||||
|
@ -209,6 +212,7 @@ def pip_install(args):
|
|||
except subprocess.CalledProcessError as e:
|
||||
print(f"\nError running pip install: {e}")
|
||||
|
||||
print("\nInstallation failed. Full output:")
|
||||
print("\nInstallation failed.\n")
|
||||
|
||||
for line in output:
|
||||
print(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue