refactor(installer): remove sqlite3 CLI false dependency and verify py-sqlite3 module check

This commit is contained in:
2026-07-11 00:58:27 +09:00
parent 66fd1c4834
commit 1c2ce0953d
4 changed files with 155 additions and 8 deletions
+4 -4
View File
@@ -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