Files
Palash Debnath 409c893449 fix(setup): ship wheels for source-only deps so setup never compiles (#4253) (#4268)
* fix(setup): ship wheels for source-only deps so first-run setup never compiles (#4253)

* docs(changelog): add fragment for #4268

* fix(setup): make vendored wheels verifiable and shipped by every consumer (#4253)

* chore(vendor): ship the ANTLR BSD notice with the vendored runtime wheel

BSD-3 requires the copyright notice to accompany binary redistribution; the antlr4-python3-runtime sdist ships none, so keep the project notice beside the wheel and package it.

* test(install): accept vendored wheel paths in the frozen export

uv export emits the vendored wheels (#4253) as ./vendor/wheels/*.whl paths, which packaging.Requirement rejects.

* test(lock): check per-target wheel tags and extras; ship the ANTLR notice in Nix

The wheel-only guard now follows extra-activated dependencies and requires a wheel whose tags match each tested platform and Python, not just any wheel. sphn 0.2.1 has no Linux ARM64 wheel upstream and is allowlisted for that source-only target. The Nix output now installs the ANTLR licence beside the vendored wheel.

* ci(dagger): copy the vendored wheels before the dependency sync

[tool.uv.sources] points docopt, antlr4-python3-runtime and dora-search at vendor/wheels (#4253); the manifest-only layer copied pyproject.toml and uv.lock without them, so dagger python-tests and check could not install.

* ci(install): run the install smoke when the vendored wheels change

The installer ships vendor/wheels (#4253), so tests/test_install_smoke_workflow.py requires it among the install-smoke triggers.
2026-11-20 11:39:13 +05:30
..

Vendored wheels

Pure-Python packages that PyPI publishes only as source tarballs. uv sync would compile them during first-run setup, and that build crashes setuptools on some Windows hosts (#4253), so [tool.uv.sources] in pyproject.toml points them here and uv.lock pins each wheel's sha256.

Package Licence
docopt 0.6.2 MIT (LICENSE-MIT kept in the wheel's dist-info)
dora-search 0.1.12 MIT (LICENSE kept in dist-info)
antlr4-python3-runtime 4.9.3 BSD-3-Clause; the upstream sdist ships no licence file, so the ANTLR project notice is kept in LICENSE-antlr4-python3-runtime.txt

Each wheel is the unmodified sdist built with the pinned backend in build-constraints.txt. SOURCES.json records every sdist URL and sha256 (the values uv.lock pinned before vendoring).

Regenerate or verify

uv run python scripts/build_vendored_wheels.py --verify   # rebuild, compare every file's content
uv run python scripts/build_vendored_wheels.py            # rebuild the committed wheels
uv lock --refresh                                         # re-pin the new wheel hashes

The script downloads only the sdist URLs in SOURCES.json and checks their sha256 first. tests/test_vendored_wheels.py runs offline in CI: wheel hash equals uv.lock, RECORD is consistent, only .py/data/metadata files plus the sdist's declared script, no native code or .pth.

To add a package: put its sdist URL and sha256 in SOURCES.json, declare it in pyproject.toml with a [tool.uv.sources] path entry, build, then uv lock. tests/test_lock_wheel_only.py fails when a default-install package has no wheel.