diff --git a/crates/install-wheel-rs/src/linker.rs b/crates/install-wheel-rs/src/linker.rs index a51844430040..c4879fa7ca15 100644 --- a/crates/install-wheel-rs/src/linker.rs +++ b/crates/install-wheel-rs/src/linker.rs @@ -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)?;