From 851893b727888133b6aac8e9f364e85b9365f2d1 Mon Sep 17 00:00:00 2001 From: BBC-Esq Date: Wed, 31 Jul 2024 16:05:43 -0400 Subject: [PATCH] correct fatal omission in setup_windows.py script --- src/setup_windows.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/setup_windows.py b/src/setup_windows.py index 638f0166..8f6a7569 100644 --- a/src/setup_windows.py +++ b/src/setup_windows.py @@ -5,6 +5,7 @@ import tkinter as tk from tkinter import messagebox from replace_sourcecode import replace_pdf_file, replace_instructor_file, replace_sentence_transformer_file +import time start_time = time.time() @@ -63,10 +64,8 @@ def manual_installation_confirmation(): if not manual_installation_confirmation(): sys.exit(1) -start_time = time.time() - -subprocess.run([sys.executable, "-m", "pip", "install", "uv==0.2.32"], check=True) -print("\033[92mInstalled uv package manager.\033[0m") +print("\033[92mInstalling uv:\033[0m") +subprocess.run(["pip", "install", "uv"], check=True) def upgrade_pip_setuptools_wheel(max_retries=5, delay=3): upgrade_commands = [ @@ -405,4 +404,4 @@ def install_libraries_with_deps(libraries): hours, rem = divmod(total_time, 3600) minutes, seconds = divmod(rem, 60) -print(f"\033[92m\nTotal installation time: {int(hours):02d}:{int(minutes):02d}:{seconds:05.2f}\033[0m") +print(f"\033[92m\nTotal installation time: {int(hours):02d}:{int(minutes):02d}:{seconds:05.2f}\033[0m") \ No newline at end of file