refactor(installer): remove sqlite3 CLI false dependency and verify py-sqlite3 module check
This commit is contained in:
@@ -83,7 +83,7 @@ fi
|
||||
|
||||
# 1. Dependency Checks
|
||||
log_info "Verifying host dependencies..."
|
||||
DEPS=(tmux python3 sqlite3 rsync uuidgen)
|
||||
DEPS=(tmux python3 rsync uuidgen)
|
||||
MISSING_DEPS=()
|
||||
for dep in "${DEPS[@]}"; do
|
||||
if ! command -v "$dep" &>/dev/null; then
|
||||
@@ -97,9 +97,9 @@ if [ ${#MISSING_DEPS[@]} -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check Python PyYAML library (hard dependency for YAML registry parsing)
|
||||
if ! python3 -c "import yaml" &>/dev/null; then
|
||||
log_error "Python 'pyyaml' package is not installed (hard dependency for session registry)."
|
||||
# Check Python PyYAML and sqlite3 library (hard dependencies for registry parsing)
|
||||
if ! python3 -c "import yaml, sqlite3" &>/dev/null; then
|
||||
log_error "Python 'pyyaml' or built-in 'sqlite3' modules are missing (hard dependencies for session registry)."
|
||||
log_error "Please run: pip install pyyaml"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user