Skip to content

Commit

Permalink
Avoid assuming RECORD file is in platlib
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 29, 2024
1 parent 5e35134 commit 6f5ad3a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/install-wheel-rs/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ pub fn install_wheel(
let mut record_writer = csv::WriterBuilder::new()
.has_headers(false)
.escape(b'"')
.from_path(
layout
.platlib
.join(format!("{dist_info_prefix}.dist-info/RECORD")),
)?;
.from_path(site_packages.join(format!("{dist_info_prefix}.dist-info/RECORD")))?;
record.sort();
for entry in record {
record_writer.serialize(entry)?;
Expand Down

0 comments on commit 6f5ad3a

Please sign in to comment.