This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
Build scripts: replace uv pip with uv build and uv run - #392
Merged
Merged
Conversation
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]>
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #381.
The three build scripts under
bindings/python/scripts/no longer useuv piporuv venv; nothing is installed into an interpreter any more. This follows PR #380, which did the same for the workflows.Dockerfile.build,python-builderstage: theuv pip install --system build wheel setuptools jpype1line is gone, andpython3 -m build --wheel [--config-setting=--build-option=--plat-name=...]is nowuv build --wheel [--config-setting=--build-option=--plat-name=...]. The old line was redundant, becausepython -m buildalready builds in an isolated environment from the[build-system] requiresofpyproject.toml(build, setuptools, wheel, jpype1), anduv builddoes the same. The output stays in/build/dist, so the laterlsandverify_wheel_platform_tag.pysteps are unchanged.Dockerfile.build,testerstage:uv pip install --system /tmp/*.whl pytest pytest-covis gone. The smoke test runs asuv run --no-project --with /tmp/*.whl --with pytest --with pytest-cov python3 /test/test_install.py, and theCMDruns the same command with--offlineso it reuses the environment cached in the image.after_tag_verify.sh:uv venvplusuv pip install --no-cacheis nowuv 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-cachewithout downloading the wheel twice. The pins are unchanged.ensure-build-tools.sh(not called by any script or workflow) now checks thatbuild,wheelandsetuptoolsresolve for each Python withuv run --no-project --with ... python -m build --version, instead of installingbuildinto the interpreter.build-native.sh: only the error message changed, fromuv pip install buildto theuv run --no-project --with build --with wheel --with setuptools bash ./scripts/build.shcommand that CI uses.ci-setup.md(the sentence that said the Docker build still installs its tools),build-architecture.mdandcontributing.md.Ran locally:
bash -non the three shell scripts; shellcheck (no new findings against main); hadolint onDockerfile.build(no new findings, the existing ones are unchanged);uv build --wheel --config-setting=--build-option=--plat-name=manylinux_2_34_x86_64on a minimal setuptools project with the same[build-system]table, which produced the manylinux-tagged wheel; theafter_tag_verify.shsmoke loop on Python 3.12 against the published 26.10.2 wheel (passes);ensure-build-tools.sh; thetesterpattern in a scratchpython:3.12-slimimage with that wheel (theRUNand the offlineCMDboth 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 installcommands inside the Docker wrappers of the benchmark examples (07to12, plus the Milvus runner image in11and12) and inexamples/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