uv build
Build Python packages into source distributions and wheels. More information: https://docs.astral.sh/uv/reference/cli/#uv-build.
- Build a package in the current directory:
uv build
- Build a package from a specific directory:
uv build
- Build only a wheel (skip source distribution):
uv build --wheel
- Build only a source distribution (skip wheel):
uv build --sdist
- Build and output to a specific directory:
uv build
- Build a specific package in a workspace:
uv build --package
- Build all packages in the workspace:
uv build
- Build with a specific Python interpreter:
uv build
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
