feat: add pip availability check in ensure_dependencies function
Some checks failed
Nix Format Check / check-format (push) Failing after 38s

This commit is contained in:
Menno van Leeuwen 2025-03-10 20:01:25 +01:00
parent 9bc865e151
commit 6f2ec615ce
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -94,6 +94,12 @@ def ensure_dependencies():
required_packages = [ required_packages = [
'pyfiglet', # For ASCII art generation '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 = [] missing_packages = []
for package in required_packages: for package in required_packages: