Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Build scripts: replace uv pip with uv build and uv run - #392

Merged
tae898 merged 1 commit into
mainfrom
uv-build-scripts-381
Oct 21, 2026
Merged

tae898 merged 1 commit into
mainfrom
uv-build-scripts-381

Conversation

@tae898

@tae898 tae898 commented Oct 21, 2026

Copy link
Copy Markdown

Closes #381.

The three build scripts under bindings/python/scripts/ no longer use uv pip or uv venv; nothing is installed into an interpreter any more. This follows PR #380, which did the same for the workflows.

  • Dockerfile.build, python-builder stage: the uv pip install --system build wheel setuptools jpype1 line is gone, and python3 -m build --wheel [--config-setting=--build-option=--plat-name=...] is now uv build --wheel [--config-setting=--build-option=--plat-name=...]. The old line was redundant, because python -m build already builds in an isolated environment from the [build-system] requires of pyproject.toml (build, setuptools, wheel, jpype1), and uv build does the same. The output stays in /build/dist, so the later ls and verify_wheel_platform_tag.py steps are unchanged.
  • Dockerfile.build, tester stage: uv pip install --system /tmp/*.whl pytest pytest-cov is gone. The smoke test runs as uv run --no-project --with /tmp/*.whl --with pytest --with pytest-cov python3 /test/test_install.py, and the CMD runs the same command with --offline so it reuses the environment cached in the image.
  • after_tag_verify.sh: uv venv plus uv pip install --no-cache is now uv run --no-project --cache-dir <fresh dir> --python <v> --with arcadedb-embedded==<version>, once for the install check and once for the smoke script. The fresh cache directory gives the same "download from PyPI" guarantee as --no-cache without downloading the wheel twice. The pins are unchanged.
  • ensure-build-tools.sh (not called by any script or workflow) now checks that build, wheel and setuptools resolve for each Python with uv run --no-project --with ... python -m build --version, instead of installing build into the interpreter.
  • build-native.sh: only the error message changed, from uv pip install build to the uv run --no-project --with build --with wheel --with setuptools bash ./scripts/build.sh command that CI uses.
  • Docs: ci-setup.md (the sentence that said the Docker build still installs its tools), build-architecture.md and contributing.md.

Ran locally: bash -n on the three shell scripts; shellcheck (no new findings against main); hadolint on Dockerfile.build (no new findings, the existing ones are unchanged); uv build --wheel --config-setting=--build-option=--plat-name=manylinux_2_34_x86_64 on a minimal setuptools project with the same [build-system] table, which produced the manylinux-tagged wheel; the after_tag_verify.sh smoke loop on Python 3.12 against the published 26.10.2 wheel (passes); ensure-build-tools.sh; the tester pattern in a scratch python:3.12-slim image with that wheel (the RUN and the offline CMD both pass); pre-commit on the changed files; the strict docs build. Not run locally, on purpose: the full Linux build image, which this PR's CI builds.

Left for a follow-up: the uv pip install commands inside the Docker wrappers of the benchmark examples (07 to 12, plus the Milvus runner image in 11 and 12) and in examples/scripts/_matrix_helpers.sh. They install into a venv inside the benchmark container or into the host environment, so changing them changes the measured benchmark setup and needs benchmark runs, not a build-script check.

🤖 Generated with Claude Code

Dockerfile.build builds the Linux wheel with `uv build --wheel` (isolated build environment from pyproject.toml) and runs the tester smoke script in a `uv run --no-project --with` environment. after_tag_verify.sh smoke-tests the PyPI release in a throwaway `uv run --with` environment. ensure-build-tools.sh now checks that the build tools resolve instead of installing them. build-native.sh points to the same `uv run` command in its error message. The development docs show the new commands.

Closes #381

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build scripts: replace uv pip in Dockerfile.build, ensure-build-tools.sh and after_tag_verify.sh

1 participant