Skip to content

Conversation

@keith
Copy link
Contributor

@keith keith commented Dec 8, 2025

Previously the install_name for libpython on macOS was just the prefix
/install/lib/... which was knowingly invalid. The post-build scripts
fixed this for python3 itself, but don't fix the dylib itself for the
case where downstream users of the toolchain try to link libpython. Now
libpython has the standard install_name relative to rpaths, and
downstream binaries need to add a rpath to the toolchain's lib directory
to load it. This is also now the same behavior as the linux toolchain

Previously the `install_name` for libpython on macOS was just the prefix
`/install/lib/...` which was knowingly invalid. The post-build scripts
fixed this for `python3` itself, but don't fix the dylib itself for the
case where downstream users of the toolchain try to link libpython. Now
libpython has the standard install_name relative to rpaths, and
downstream binaries need to add a rpath to the toolchain's lib directory
to load it. This is also now the same behavior as the linux toolchain
@jjhelmus
Copy link
Contributor

jjhelmus commented Dec 8, 2025

This change makes sense to me. Thanks @keith

@jjhelmus jjhelmus merged commit 91f343f into astral-sh:main Dec 9, 2025
979 of 982 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants