Where package code can run in a uv workflow
Tested with uv 0.13.1, October 15, 2026. Tags show whether uv.lock constrains the step and what no-build = true does.
- 1Lock
uv adduv lockAn sdist with no static metadata runs its build backend to report dependencies. docopt's setup.py ran before anything was installed.
- 2Sync
uv syncuv runWheels are unpacked without running code, after hash checks. A locked sdist is built if no locked wheel fits the machine.
- 3Startup
uv runpythonA
.pthline starting withimportruns at every interpreter start, including uv's own interpreter probe. Imports run module code. - 4Tools
uvxuv tool runResolves a tool and its dependencies against the live index on first run, then reuses a cached environment.
