Patch embedded install path for Python dylib on macOS during python install (#10629)

## Summary

Fixes #10598 

## Test Plan

Looking for input here @zanieb. How/where would you include tests for
this?
More broadly: do we want a failure to perform the rename to be a hard
error? Or should it start out as a warning?

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
Luca Palmieri 2025-01-15 21:11:54 +01:00 committed by GitHub
parent 04fc36f066
commit 1af02ce8f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 141 additions and 2 deletions

View file

@ -165,6 +165,9 @@ impl PythonInstallation {
installed.ensure_externally_managed()?;
installed.ensure_sysconfig_patched()?;
installed.ensure_canonical_executables()?;
if let Err(e) = installed.ensure_dylib_patched() {
e.warn_user(&installed);
}
Ok(Self {
source: PythonSource::Managed,