From e129c1396ab7ab2bdb1258d0e7de69a7ac4a001b Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Fri, 3 May 2024 15:37:49 +0200 Subject: [PATCH] colorama auto install --- README.md | 2 +- install.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1957996..972ce7b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ To set up the project environment and run the bootloader, follow these steps: git submodule update --init ``` -1. **Setup Python Environment**: Ensure you have a Python 3.9.0 environment set up & `pip install colorama` for pretty outputs. +1. **Setup Python Environment**: Ensure you have a Python 3.9.0 environment set up. 2. **Installation**: Run `python install.py` to install the necessary dependencies and set up the project. diff --git a/install.py b/install.py index 1799c9c..c48c26a 100644 --- a/install.py +++ b/install.py @@ -1,8 +1,7 @@ import subprocess -from colorama import Fore, Style - def log_and_run(commands, description, cwd=None): + from colorama import Fore, Style full_command = " && ".join(commands) try: print(f"{Fore.YELLOW}Starting: {description}...{Style.RESET_ALL}") @@ -21,7 +20,7 @@ def log_and_run(commands, description, cwd=None): log_and_run( [ "pip install cairo-lang==0.13.1", - "pip install aiofiles", + "pip install aiofiles colorama", "pip install cairo0-bootloader/", ], "Installing cairo-lang",