Skip to content

Commit

Permalink
Ignore sources in build requirements for non-source trees (#8235)
Browse files Browse the repository at this point in the history
## Summary

We shouldn't enforce sources when, e.g., you provide a `.tar.gz` file.

Closes #8236.
  • Loading branch information
charliermarsh authored Oct 16, 2024
1 parent 59003cb commit 98d0494
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions crates/uv-distribution/src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
source_dist_entry.path(),
subdirectory,
&cache_shard,
self.build_context.sources(),
SourceStrategy::Disabled,
)
.await?;

Expand Down Expand Up @@ -586,7 +586,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
source,
source_dist_entry.path(),
subdirectory,
self.build_context.sources(),
SourceStrategy::Disabled,
)
.boxed_local()
.await?
Expand Down Expand Up @@ -617,7 +617,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
source_dist_entry.path(),
subdirectory,
&cache_shard,
self.build_context.sources(),
SourceStrategy::Disabled,
)
.await?;

Expand Down Expand Up @@ -775,7 +775,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
source_entry.path(),
None,
&cache_shard,
self.build_context.sources(),
SourceStrategy::Disabled,
)
.await?;

Expand Down Expand Up @@ -862,12 +862,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {

// If the backend supports `prepare_metadata_for_build_wheel`, use it.
if let Some(metadata) = self
.build_metadata(
source,
source_entry.path(),
None,
self.build_context.sources(),
)
.build_metadata(source, source_entry.path(), None, SourceStrategy::Disabled)
.boxed_local()
.await?
{
Expand Down Expand Up @@ -905,7 +900,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
source_entry.path(),
None,
&cache_shard,
self.build_context.sources(),
SourceStrategy::Disabled,
)
.await?;

Expand Down

0 comments on commit 98d0494

Please sign in to comment.