mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 02:40:11 +00:00
Fix bug where --no-binary :all: prevented build of editable packages (#2393)
Closes https://github.com/astral-sh/uv/issues/2343
This commit is contained in:
parent
7220894ffb
commit
00ec99399a
2 changed files with 43 additions and 1 deletions
|
|
@ -280,7 +280,10 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
build_kind: BuildKind,
|
||||
) -> Result<SourceBuild> {
|
||||
match self.no_build {
|
||||
NoBuild::All => bail!("Building source distributions is disabled"),
|
||||
NoBuild::All => debug_assert!(
|
||||
matches!(build_kind, BuildKind::Editable),
|
||||
"Only editable builds are exempt from 'no build' checks"
|
||||
),
|
||||
NoBuild::None => {}
|
||||
NoBuild::Packages(packages) => {
|
||||
if let Some(dist) = dist {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue