Skip to content

BUG: crash in uv sync --no-build --no-install-project #7247

@neutrinoceros

Description

@neutrinoceros

XY problem disclaimer: what I was really trying to accomplish here was installing dependencies only, ref #1516

I understand that uv sync --no-build is a bit self-contradictory because it requires building the project itself but forbids building anything, but I was still surprised that adding --no-install-project didn't help

reprod

❯ mkdir test_pkg && cd test_pkg
❯ uv init --lib
Initialized project `test-pkg`
❯ uv sync --no-build --no-install-project --verbose
DEBUG uv 0.4.8 (Homebrew 2024-09-09)
DEBUG Found project root: `/private/tmp/test_pkg`
DEBUG No workspace root found, using project root
DEBUG Reading requests from `/private/tmp/test_pkg/.python-version`
DEBUG Searching for Python 3.12 in managed installations or system path
DEBUG Searching for managed installations at `/Users/clm/Library/Application Support/uv/python`
DEBUG Found managed installation `cpython-3.12.5-macos-aarch64-none`
DEBUG Found `cpython-3.12.5-macos-aarch64-none` at `/Users/clm/Library/Application Support/uv/python/cpython-3.12.5-macos-aarch64-none/bin/python3` (managed installations)
Using Python 3.12.5
Creating virtualenv at: .venv
DEBUG Using request timeout of 30s
DEBUG Starting clean resolution
DEBUG Allowing build for editable source distribution: test-pkg @ file:///private/tmp/test_pkg
DEBUG Found static `pyproject.toml` for: test-pkg @ file:///private/tmp/test_pkg
DEBUG No workspace root found, using project root
DEBUG Solving with installed Python version: 3.12.5
DEBUG Solving with target Python version: >=3.12
DEBUG Adding direct dependency: test-pkg*
DEBUG Searching for a compatible version of test-pkg @ file:///private/tmp/test_pkg (*)
DEBUG Tried 1 versions: test-pkg 1
DEBUG Split universal resolution took 0.000s
Resolved 1 package in 1ms
error: distribution test-pkg==0.1.0 @ editable+. can't be installed because it is marked as `--no-build` but has no binary distribution

Is this intended, and is there a way around it ?

$ uv --version
uv 0.4.8 (Homebrew 2024-09-09)

Metadata

Metadata

Assignees

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