Move python deps into the pack (requirements.txt)
The pack owns its Playwright dep now, shipped at requirements.txt (standard pip format) instead of the agent repo's requirements/browser.txt. bootstrap installs packs/<name>/requirements.txt when the pack is selected; the browser binary is still downloaded by bootstrap. Update the client's install hint to the new path.
This commit is contained in:
1 parent
72bfd1ef5f
commit
7072fd0107
2 files changed
+25
-1
No files matched your search
@@ -41,7 +41,8 @@ DEFAULT_MAX_TEXT_CHARS = 20000
|
||||
DEFAULT_MAX_MATCHES = 50
|
||||
WAIT_UNTIL = ("commit", "domcontentloaded", "load", "networkidle")
|
||||
INSTALL_HINT = (
|
||||
"install the browser bridge stack: pip install -r requirements/browser.txt "
|
||||
"install the browser bridge stack: pip install -r "
|
||||
"packs/browser/requirements.txt "
|
||||
"&& PLAYWRIGHT_BROWSERS_PATH=<repo>/.runtime/browser python -m playwright "
|
||||
"install chromium"
|
||||
)
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# Browser pack deps (optional).
|
||||
#
|
||||
# This file lives WITH the pack: a pack owns the python deps its skills/bridge
|
||||
# need, and `scripts/bootstrap.sh` installs `packs/<name>/requirements.txt` for
|
||||
# every pack the install plan selects (see PACKGEN.md, "Pack python deps"). The
|
||||
# deps are lazy-imported by packs/browser/bridge/browser_client.py, so the core
|
||||
# stays stdlib-only and every other bridge keeps running without them. Install
|
||||
# with scripts/bootstrap.sh --browser, or by hand:
|
||||
# .runtime/venv/bin/pip install -r packs/browser/requirements.txt
|
||||
# PLAYWRIGHT_BROWSERS_PATH=.runtime/browser \
|
||||
# .runtime/venv/bin/python -m playwright install chromium
|
||||
#
|
||||
# The browser binaries are NOT shipped in the wheel: `playwright install`
|
||||
# downloads Chromium into PLAYWRIGHT_BROWSERS_PATH. bootstrap.sh points that at
|
||||
# the checkout's .runtime/browser (the containment rule); the bridge sets the
|
||||
# same env var at launch, so the binaries live with the rest of the stack. Add
|
||||
# `--with-deps` to the install command on a bare host to fetch the system
|
||||
# libraries Chromium needs (needs sudo).
|
||||
#
|
||||
# Only `chromium` is installed by default; switch bridges.browser.engine to
|
||||
# firefox/webkit and run `python -m playwright install firefox`/`webkit` for
|
||||
# those.
|
||||
playwright==1.63.0
|
||||
Reference in new issue
Block a user