mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-25 17:38:21 +00:00
Remove SourceDistFilename from RegistrySourceDist (#3650)
## Summary Uncertain about this, but we don't actually need the full `SourceDistFilename`, only the name and version -- and we often have that information already (as in the lockfile routines). So by flattening the fields onto `RegistrySourceDist`, we can avoid re-parsing for information we already have.
This commit is contained in:
parent
1124df9bc5
commit
657eebd50b
9 changed files with 24 additions and 22 deletions
|
|
@ -93,8 +93,8 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
|
|||
let cache_shard = self.build_context.cache().shard(
|
||||
CacheBucket::BuiltWheels,
|
||||
WheelCache::Index(&dist.index)
|
||||
.wheel_dir(dist.filename.name.as_ref())
|
||||
.join(dist.filename.version.to_string()),
|
||||
.wheel_dir(dist.name.as_ref())
|
||||
.join(dist.version.to_string()),
|
||||
);
|
||||
|
||||
let url = match &dist.file.url {
|
||||
|
|
@ -250,8 +250,8 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
|
|||
let cache_shard = self.build_context.cache().shard(
|
||||
CacheBucket::BuiltWheels,
|
||||
WheelCache::Index(&dist.index)
|
||||
.wheel_dir(dist.filename.name.as_ref())
|
||||
.join(dist.filename.version.to_string()),
|
||||
.wheel_dir(dist.name.as_ref())
|
||||
.join(dist.version.to_string()),
|
||||
);
|
||||
|
||||
let url = match &dist.file.url {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue