Skip to content

gh-159759: Fix libpython.static in PEP 739 build-details.json - #159766

Merged
itamaro merged 2 commits into
python:mainfrom
itamaro:gh-build-details-libpython-static
Oct 20, 2026
Merged

itamaro merged 2 commits into
python:mainfrom
itamaro:gh-build-details-libpython-static

Conversation

@itamaro

@itamaro itamaro commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

When a shared library is also built, point libpython.static at LIBPL,
the only place make install puts the static library, and don't list it for
framework builds, which don't install one. Static-only builds keep the
existing LIBDIR value, which is installed in that configuration.

Written with assistance from Claude Code Opus 5.5

When a shared library is also built, `make install` only installs the
static library into LIBPL, so point libpython.static there instead of
LIBDIR. Static-only builds keep the existing LIBDIR path, which is
installed in that configuration. Framework builds don't install the
static library (LIBPL contains a symlink to the framework's shared
library instead), so don't list it.

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.

Just some minor stylistic things.

Also note I'm no expert in this area, so my review should be taken with a grain of salt.

Comment thread Lib/test/test_build_details.py Outdated
Comment thread Lib/test/test_build_details.py Outdated
Comment thread Lib/test/test_build_details.py Outdated
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y2CKGDURpDRVEHD7FfWnps

@corona10 corona10 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.

lgtm!

@itamaro itamaro added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 20, 2026
@itamaro
itamaro merged commit e41b38b into python:main Oct 20, 2026
110 of 112 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 20, 2026

Copy link
Copy Markdown

GH-159823 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 20, 2026
@bedevere-app

bedevere-app Bot commented Oct 20, 2026

Copy link
Copy Markdown

GH-159824 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 20, 2026
itamaro added a commit that referenced this pull request Oct 20, 2026
…H-159766) (#159824)

gh-159759: Fix libpython.static in PEP 739 build-details.json (GH-159766)

When a shared library is also built, point `libpython.static` at `LIBPL`,
the only place `make install` puts the static library, and don't list it for
framework builds, which don't install one. Static-only builds keep the
existing `LIBDIR` value, which is installed in that configuration.
(cherry picked from commit e41b38b)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
itamaro added a commit that referenced this pull request Oct 20, 2026
…H-159766) (#159823)

gh-159759: Fix libpython.static in PEP 739 build-details.json (GH-159766)

When a shared library is also built, point `libpython.static` at `LIBPL`,
the only place `make install` puts the static library, and don't list it for
framework builds, which don't install one. Static-only builds keep the
existing `LIBDIR` value, which is installed in that configuration.
(cherry picked from commit e41b38b)

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants