From d2e73852800c860b975840996c626934ce4e0554 Mon Sep 17 00:00:00 2001 From: nose Date: Wed, 17 Dec 2025 14:18:14 -0800 Subject: [PATCH] jk --- scripts/install_playwright.py | 32 -------------------------------- scripts/setup.ps1 | 18 ------------------ scripts/setup.sh | 8 -------- 3 files changed, 58 deletions(-) delete mode 100644 scripts/install_playwright.py delete mode 100644 scripts/setup.ps1 delete mode 100644 scripts/setup.sh diff --git a/scripts/install_playwright.py b/scripts/install_playwright.py deleted file mode 100644 index 60ef0a6..0000000 --- a/scripts/install_playwright.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python3 -"""Install Playwright browser binaries after dependencies are installed. - -This script will attempt to install the 'playwright' package if it's missing, -then run the Playwright browser installer. -""" - -import sys -import subprocess - - -def run(cmd: list[str]) -> None: - print("Running:", " ".join(cmd)) - subprocess.check_call(cmd) - - -def main() -> None: - # Ensure 'playwright' package is present; if not, install it. - try: - import playwright # type: ignore - except Exception: - print("'playwright' package not found; installing via pip...") - run([sys.executable, "-m", "pip", "install", "playwright"]) - - print("Installing Playwright browsers (this may download several hundred MB)...") - run([sys.executable, "-m", "playwright", "install"]) - - print("Playwright browsers installed successfully.") - - -if __name__ == "__main__": - main() diff --git a/scripts/setup.ps1 b/scripts/setup.ps1 deleted file mode 100644 index 2d4794c..0000000 --- a/scripts/setup.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -# scripts/setup.ps1 - DEPRECATED wrapper that calls the Python setup script -$ErrorActionPreference = 'Stop' - -# Determine repository root (one level up from script directory) -$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path -$repoRoot = Resolve-Path (Join-Path $scriptDir '..') - -Push-Location $repoRoot - -try { - Write-Host "Calling Python setup script (scripts/setup.py)..." - python ./scripts/setup.py @args -} catch { - Write-Error "Failed to run python ./scripts/setup.py: $_" - exit 1 -} finally { - Pop-Location -} diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100644 index 0fa7340..0000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -cd "$SCRIPT_DIR" - -echo "Calling Python setup script (scripts/setup.py)..." -python ./scripts/setup.py "$@"