Add dedicated cache method for creating build directories (#8910)

## Summary

Based on feedback from
https://github.com/astral-sh/uv/pull/8905/files#r1833531812.
This commit is contained in:
Charlie Marsh 2024-11-07 19:50:55 -05:00 committed by GitHub
parent 88033610b5
commit 9cd51c8a57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 12 deletions

View file

@ -261,7 +261,7 @@ impl SourceBuild {
level: BuildOutput,
concurrent_builds: usize,
) -> Result<Self, Error> {
let temp_dir = build_context.cache().environment()?;
let temp_dir = build_context.cache().venv_dir()?;
let source_tree = if let Some(subdir) = subdirectory {
source.join(subdir)