Skip to content

Commit

Permalink
correct fatal omission in setup_windows.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
BBC-Esq authored Jul 31, 2024
1 parent 3c09744 commit 851893b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/setup_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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 = [
Expand Down Expand Up @@ -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")

0 comments on commit 851893b

Please sign in to comment.