Skip to content

gh-159998: Fix libpython.dynamic in build-details.json for framework builds - #160005

Merged
itamaro merged 3 commits into
python:mainfrom
itamaro:gh-build-details-framework-dynamic
Oct 21, 2026
Merged

itamaro merged 3 commits into
python:mainfrom
itamaro:gh-build-details-framework-dynamic

Conversation

@itamaro

@itamaro itamaro commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

In framework builds, libpython.dynamic now joins PYTHONFRAMEWORKPREFIX with LDLIBRARY instead of LIBDIR with LDLIBRARY, so it points at the framework library that is actually installed. Other builds are unchanged.

Written with assistance from Claude Code Opus 5.5

…ework builds

In framework builds, LDLIBRARY is the framework library's path relative to
PYTHONFRAMEWORKPREFIX (e.g. Python.framework/Versions/3.X/Python), so
joining it with LIBDIR named a file that doesn't exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@brettcannon brettcannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usual caveat that I don't use a Mac, so I can't attest to the semantics.

Comment thread Lib/test/test_build_details.py Outdated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@itamaro
itamaro enabled auto-merge (squash) October 21, 2026 21:54
Comment thread Lib/test/test_build_details.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@itamaro
itamaro merged commit 13c758d into python:main Oct 21, 2026
61 of 62 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @itamaro for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160145 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 21, 2026
@bedevere-app

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160146 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 21, 2026
ambv pushed a commit that referenced this pull request Oct 21, 2026
…ramework builds (GH-160005) (#160145)

In framework builds, `libpython.dynamic` now joins `PYTHONFRAMEWORKPREFIX` with `LDLIBRARY` instead of `LIBDIR` with `LDLIBRARY`, so it points at the framework library that is actually installed. Other builds are unchanged.
(cherry picked from commit 13c758d)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
ambv pushed a commit that referenced this pull request Oct 21, 2026
…ramework builds (GH-160005) (#160146)

In framework builds, `libpython.dynamic` now joins `PYTHONFRAMEWORKPREFIX` with `LDLIBRARY` instead of `LIBDIR` with `LDLIBRARY`, so it points at the framework library that is actually installed. Other builds are unchanged.
(cherry picked from commit 13c758d)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The build process and cross-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants