Skip to content

Commit 35c19fc

Browse files
fix(build): delegate build-server and build-sdk to scripts/build.py
The `build-server` and `build-sdk` Make targets ran a raw `uv build` in the package directory. Both packages declare `agent_control_models`, `agent_control_engine`, and `agent_control_telemetry` as vendored packages in their hatch wheel config. Without the pre-build copy that `scripts/build.py` performs, hatch silently produces a wheel whose declared package directories are empty on disk: $ unzip -l dist/agent_control_server-*.whl | grep telemetry/ (no match) The resulting wheel installs cleanly via pip but crashes at startup because the bundled imports are missing: agent-control-migrate: No module named 'agent_control_telemetry' Delegate `build-models`, `build-server`, and `build-sdk` to the canonical `scripts/build.py` entry points so that `make build-server` and `make build-sdk` produce the same wheels as the publish pipeline runs in CI. Verified: rebuilt wheels now contain `agent_control_models`, `agent_control_engine`, and `agent_control_telemetry` under their respective package directories. `build-models` had no vendored packages, so the previous raw-`uv build` worked, but routing it through the script keeps the build-target shape uniform across the three publishable packages.
1 parent b4a9a0a commit 35c19fc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,14 @@ telemetry-typecheck:
154154
build: build-models build-server build-sdk engine-build telemetry-build evaluators-build contrib-build
155155

156156
build-models:
157-
cd $(MODELS_DIR) && uv build
157+
uv run python scripts/build.py models
158158

159+
# scripts/build.py copies vendored workspace packages before building wheels.
159160
build-server:
160-
cd $(SERVER_DIR) && uv build
161+
uv run python scripts/build.py server
161162

162163
build-sdk:
163-
cd $(SDK_DIR) && uv build
164+
uv run python scripts/build.py sdk
164165

165166
telemetry-build:
166167
cd $(TELEMETRY_DIR) && uv build

0 commit comments

Comments
 (0)