From cf09b94e977105219f22043fbb1faea20ee3f9f5 Mon Sep 17 00:00:00 2001 From: ilya-pevzner Date: Sun, 14 Sep 2025 01:06:59 -0400 Subject: [PATCH] fix build commands to support pip install from repo --- pyproject.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e3024dda..6faef6de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,11 +119,9 @@ artifacts = ["rio/frontend files/*"] [tool.hatch.build.targets.sdist] artifacts = ["rio/frontend files/*"] -[[tool.hatch.build.targets.sdist.hooks.build-scripts.scripts]] +[[tool.hatch.build.hooks.build-scripts.scripts]] commands = [ - "uv sync", - "npm install", - "uv run python scripts/build.py", + "test -d .venv || (uv sync && npm install && uv run python scripts/build.py)", ] [tool.ruff]