#21982·uv

no-build and dynamic version does not build first-party package

Author: schlamarCreated Sep 25, 2026Updated Sep 25, 2026
Labelsbug

Summary

Minimal example

toml
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "test"
requires-python = ">=3.10"
dynamic = ["version"]

[tool.uv]
no-build = true

Running uv cache clean && uv lock -P pytest results in

error: Failed to build test @ file:///C:/Users/schlaich/Desktop/Temp/uv-build cause: Building source distributions for test is disabled

Platform

Windows 11

Version

uv 0.12.19 (bea138450 2026-09-24 x86_64-pc-windows-msvc)

Python version

No response