Skip to content

build system requirements not properly resolved #16494

@nschloe

Description

@nschloe

Summary

I try to uv build . a local package that has

[build-system]
build-backend = "foo.build_meta"
requires = [
  "foo>=0.1a2",
]

foo depends on bar>=0.2a7. uv reports

  ├─▶ Failed to resolve requirements from `build-system.requires`
  ├─▶ No solution found when resolving: `foo>=0.1a2`
  ╰─▶ Because only bar<0.2a7 is available and
      foo==0.1a2 depends on bar>=0.2a7, we can
      conclude that foo==0.1a2 cannot be used.
      And because only foo<=0.1a2 is available and you require
      foo>=0.1a2, we can conclude that your requirements are unsatisfiable.

After manually adding

[build-system]
build-backend = "foo.build_meta"
requires = [
  "foo>=0.1a2",
  "bar>=0.2a7",
]

it all works fine. This suggests that the build system requirements resolver is buggy. Perhaps the fact that there are alpha-versions involved plays a role here.

Platform

Linux 6.12.55-1-lts x86_64 GNU/Linux

Version

uv 0.9.5

Python version

all

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions