jk
This commit is contained in:
@@ -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()
|
||||
@@ -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
|
||||
}
|
||||
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user