From 6f2ec615ceccf2b139bee818c624306fb2003bd4 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Mon, 10 Mar 2025 20:01:25 +0100 Subject: [PATCH] feat: add pip availability check in ensure_dependencies function --- bin/helpers/functions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/helpers/functions.py b/bin/helpers/functions.py index 8581707..198463e 100644 --- a/bin/helpers/functions.py +++ b/bin/helpers/functions.py @@ -94,6 +94,12 @@ def ensure_dependencies(): required_packages = [ 'pyfiglet', # For ASCII art generation ] + + # Check if pip is available + success, _ = run_command(['pip', '--version']) + if not success: + printfe("red", "Pip is required to install missing dependencies, try again after running `dotf update`") + return False missing_packages = [] for package in required_packages: