f
This commit is contained in:
@@ -8,6 +8,10 @@ downloads Playwright browser binaries by running `python -m playwright install`.
|
||||
By default this script installs **Chromium** only to conserve space; pass
|
||||
`--browsers all` to install all supported engines (chromium, firefox, webkit).
|
||||
|
||||
FFmpeg: The project includes ffmpeg binaries for Windows (in MPV/ffmpeg). On Linux/macOS,
|
||||
install ffmpeg using your system package manager (apt install ffmpeg, brew install ffmpeg, etc.).
|
||||
ffmpeg-python is installed as a dependency, but requires ffmpeg itself to be on your PATH.
|
||||
|
||||
Note: This Python script is the canonical installer for the project — prefer
|
||||
running `python ./scripts/bootstrap.py` locally. The platform scripts
|
||||
(`scripts/bootstrap.ps1` and `scripts/bootstrap.sh`) are now thin wrappers
|
||||
@@ -641,7 +645,7 @@ def main() -> int:
|
||||
if not playwright_package_installed():
|
||||
if not args.quiet:
|
||||
print("'playwright' package not found; installing it via pip...")
|
||||
run([sys.executable, "-m", "pip", "install", "playwright"])
|
||||
run([sys.executable, "-m", "pip", "install", "--no-cache-dir", "playwright"])
|
||||
|
||||
if not args.quiet:
|
||||
print(
|
||||
@@ -668,6 +672,7 @@ def main() -> int:
|
||||
"pip",
|
||||
"install",
|
||||
"--upgrade",
|
||||
"--no-cache-dir",
|
||||
"pip",
|
||||
"setuptools",
|
||||
"wheel",
|
||||
@@ -686,13 +691,13 @@ def main() -> int:
|
||||
print(
|
||||
f"Installing Python dependencies into local venv from {req_file}..."
|
||||
)
|
||||
run([str(venv_python), "-m", "pip", "install", "-r", str(req_file)])
|
||||
run([str(venv_python), "-m", "pip", "install", "--no-cache-dir", "-r", str(req_file)])
|
||||
|
||||
if not args.no_playwright:
|
||||
if not playwright_package_installed():
|
||||
if not args.quiet:
|
||||
print("'playwright' package not installed in venv; installing it...")
|
||||
run([str(venv_python), "-m", "pip", "install", "playwright"])
|
||||
run([str(venv_python), "-m", "pip", "install", "--no-cache-dir", "playwright"])
|
||||
|
||||
if not args.quiet:
|
||||
print(
|
||||
@@ -711,7 +716,7 @@ def main() -> int:
|
||||
# Install the project into the local venv (editable mode is the default, opinionated)
|
||||
if not args.quiet:
|
||||
print("Installing project into local venv (editable mode)")
|
||||
run([str(venv_python), "-m", "pip", "install", "-e", str(repo_root / "scripts")])
|
||||
run([str(venv_python), "-m", "pip", "install", "--no-cache-dir", "-e", str(repo_root / "scripts")])
|
||||
|
||||
# Verify top-level 'CLI' import and, if missing, attempt to make it available
|
||||
if not args.quiet:
|
||||
|
||||
Reference in New Issue
Block a user