mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
.
This commit is contained in:
parent
b64e28bb14
commit
ff98ee3273
2 changed files with 14 additions and 2 deletions
|
@ -1256,6 +1256,14 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
|
|||
return Ok(None);
|
||||
};
|
||||
|
||||
// If there is no `PrioritizedDist`, our candidate is an installed package.
|
||||
if let Some(variants_json) = candidate
|
||||
.prioritized()
|
||||
.and_then(|prioritized_dist| prioritized_dist.variants_json())
|
||||
{
|
||||
&variants_json.file;
|
||||
}
|
||||
|
||||
let dist = match candidate.dist() {
|
||||
CandidateDist::Compatible(dist) => dist,
|
||||
CandidateDist::Incompatible(incompatibility) => {
|
||||
|
|
|
@ -81,11 +81,15 @@ impl VariantBuild {
|
|||
let resolved_requirements = build_context
|
||||
.resolve(&requirements, &BuildStack::empty())
|
||||
.await
|
||||
.map_err(|err| Error::RequirementsResolve("`build-system.requires`", err.into()))?;
|
||||
.map_err(|err| {
|
||||
Error::RequirementsResolve("`variant.providers.TODO(konsti).requires`", err.into())
|
||||
})?;
|
||||
build_context
|
||||
.install(&resolved_requirements, &venv, &BuildStack::empty())
|
||||
.await
|
||||
.map_err(|err| Error::RequirementsInstall("`build-system.requires`", err.into()))?;
|
||||
.map_err(|err| {
|
||||
Error::RequirementsInstall("`variant.providers.TODO(konsti).requires`", err.into())
|
||||
})?;
|
||||
|
||||
// Figure out what the modified path should be, and remove the PATH variable from the
|
||||
// environment variables if it's there.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue