mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Allow virtual packages with --no-build
(#12314)
## Summary Closes #12311.
This commit is contained in:
parent
149102a4e7
commit
7ac6c6963d
4 changed files with 157 additions and 16 deletions
|
@ -2196,8 +2196,11 @@ impl Package {
|
|||
};
|
||||
}
|
||||
|
||||
if !no_build {
|
||||
if let Some(sdist) = self.to_source_dist(workspace_root)? {
|
||||
if let Some(sdist) = self.to_source_dist(workspace_root)? {
|
||||
// Even with `--no-build`, allow virtual packages. (In the future, we may want to allow
|
||||
// any local source tree, or at least editable source trees, which we allow in
|
||||
// `uv pip`.)
|
||||
if !no_build || sdist.is_virtual() {
|
||||
return Ok(Dist::Source(sdist));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue