setup.sh: robust interpreter selection (--python flag, 3.10-3.12 wheel-range guard)

Clean-venv build executed end-to-end on Pascal hardware: slimmed
requirements.txt boots the full pipeline; torch 2.6.0+cu124, sm_61 detected.
This commit is contained in:
plean committed 2026-11-18 02:37:57 +00:00
1 parent 61a0f353cd
commit 392fa6326f
2 files changed
+27 -16

No files matched your search

+4
View File
@@ -52,6 +52,10 @@ git clone https://git.plean.rip/plean/omniparse-mcp.git && cd omniparse-mcp
curl -s http://127.0.0.1:8898/healthz
```
setup.sh needs a Python **3.10–3.12** venv (the pinned numpy/torch wheels stop
at cp312). If your default `python3` is newer or lacks venv support, point at
any suitable interpreter: `./setup.sh --python /path/to/python3.12`.
`start.sh` binds **127.0.0.1 by default** — the bearer token is a static
secret, so LAN exposure is an explicit opt-in: `OMNI_API_HOST=0.0.0.0
./start.sh` (firewall it yourself). The token lives **outside the repo**