From ac8536b8aef235182cbf5d36cf7548510469a231 Mon Sep 17 00:00:00 2001 From: Level Pixel Dev Date: Thu, 29 May 2025 08:53:29 +0600 Subject: [PATCH] Added build time warnings for llama-cpp-python package and updated dependencies in pyproject.toml and requirements.txt --- install_init.py | 2 +- pyproject.toml | 5 ++++- requirements.txt | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/install_init.py b/install_init.py index bcbaa5e..1abcb53 100644 --- a/install_init.py +++ b/install_init.py @@ -106,6 +106,7 @@ def install_package(package_name, extra_args=None): command = [sys.executable, "-m", "pip", "install", package_name, "--no-cache-dir"] if extra_args: command.extend(extra_args.split()) + print("WARNING: Building the llama-cpp-python wheels can take UP TO AN HOUR due to the specific build conditions. This is not an error, just wait.") subprocess.check_call(command) def package_is_installed(package_name): @@ -154,7 +155,6 @@ def install_llama(system_info): # Build from source with appropriate acceleration try: - print("WARNING: Building the llama-cpp-python wheels can take UP TO AN HOUR due to the specific build conditions. This is not an error, just wait.") if system_info.get('metal', False): print("Building llama-cpp-python from source with Metal support") os.environ['CMAKE_ARGS'] = "-DGGML_METAL=on" diff --git a/pyproject.toml b/pyproject.toml index 8c5d0aa..d7e7b6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,10 @@ dependencies = [ "timm>=0.4.12", "tqdm>=4.65.0", "fairscale>=0.4.4", - "rembg>=2.0.66" ] + "rembg>=2.0.66", + "diskcache>=5.6.1", + "jinja2>=2.11.3", + "typing-extensions>=4.5.0" ] [project.urls] Repository = "https://github.com/LevelPixel/ComfyUI-LevelPixel-Advanced" diff --git a/requirements.txt b/requirements.txt index cc5218c..64340de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,7 @@ tqdm>=4.65.0 fairscale>=0.4.4 rembg>=2.0.66 matplotlib +diskcache>=5.6.1 +jinja2>=2.11.3 +typing-extensions>=4.5.0 ram @ git+https://github.com/xinyu1205/recognize-anything.git