fix(runner): use uv pip install for Python venv
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-08 15:31:13 +01:00
parent 7b875de301
commit 528e7e21b1

View File

@@ -253,7 +253,7 @@ const server = createServer(async (req, res) => {
const { execSync } = await import("node:child_process");
try {
execSync(`uv venv ${join(svcSourcePath, ".venv")}`, { timeout: 30_000, stdio: "pipe" });
execSync(`${join(svcSourcePath, ".venv/bin/pip")} install ${body.uvxPackage}`, { timeout: 120_000, stdio: "pipe" });
execSync(`uv pip install --python ${join(svcSourcePath, ".venv/bin/python")} ${body.uvxPackage}`, { timeout: 120_000, stdio: "pipe" });
console.log(`[runner] uvx package installed: ${body.uvxPackage}`);
} catch (e) {
return json(res, 500, { error: `uvx install failed: ${e.message}` });