mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Always run get_requires_for_build_wheel
(#1590)
## Summary
I want to revisit this as I think it's still skippable in some cases,
but for now, let's be more conservative.
Closes https://github.com/astral-sh/uv/issues/1582.
## Test Plan
Cloned
`3aea423569/setup/mis_builder/setup.py (L4)
`,
and ran `cargo run pip install -e mis_builder`.
This commit is contained in:
parent
563c636aa0
commit
12fea1d058
1 changed files with 9 additions and 13 deletions
|
@ -339,20 +339,16 @@ impl SourceBuild {
|
|||
.await
|
||||
.map_err(|err| Error::RequirementsInstall("build-system.requires (install)", err))?;
|
||||
|
||||
// If we're using the default backend configuration, skip `get_requires_for_build_*`, since
|
||||
// we already installed the requirements above.
|
||||
if let Some(pep517_backend) = &pep517_backend {
|
||||
if pep517_backend != &default_backend {
|
||||
create_pep517_build_environment(
|
||||
&source_tree,
|
||||
&venv,
|
||||
pep517_backend,
|
||||
build_context,
|
||||
&package_id,
|
||||
build_kind,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
create_pep517_build_environment(
|
||||
&source_tree,
|
||||
&venv,
|
||||
pep517_backend,
|
||||
build_context,
|
||||
&package_id,
|
||||
build_kind,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
Ok(Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue