Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual project fails to sync if no-build is set. #12311

Open
LordAro opened this issue Mar 19, 2025 · 2 comments · May be fixed by #12314
Open

Virtual project fails to sync if no-build is set. #12311

LordAro opened this issue Mar 19, 2025 · 2 comments · May be fixed by #12314
Assignees
Labels
bug Something isn't working

Comments

@LordAro
Copy link

LordAro commented Mar 19, 2025

Summary

I've been playing around with a "virtual" project, i.e. one without a build system.

I've found that the following results in an error:

$ uv init --vcs none
Initialized project `python`
$ uv sync
Using CPython 3.12.9
Creating virtual environment at: .venv
Resolved 1 package in 5ms
Audited in 0.02ms
$ uv sync --no-build
Resolved 1 package in 1ms
error: Distribution `python==0.1.0 @ virtual+.` can't be installed because it is marked as `--no-build` but has no binary distribution

Seems like a "virtual" project shouldn't be trying to be installed or built regardless of whether --no-build is set?

Perhaps related to #6749 ?

Platform

Ubuntu 22.04

Version

uv 0.6.7

Python version

Python 3.12.9

@LordAro LordAro added the bug Something isn't working label Mar 19, 2025
@LordAro
Copy link
Author

LordAro commented Mar 19, 2025

A workaround seems to be to use no-binary-package = ["foobar"] where "foobar" is the virtual project

@charliermarsh
Copy link
Member

We should probably allow that, yeah. Thanks.

@charliermarsh charliermarsh self-assigned this Mar 19, 2025
@charliermarsh charliermarsh linked a pull request Mar 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants