FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-159759: Fix libpython.static in PEP 739 build-details.json by itamaro · Pull Request #159766 · python/cpython · GitHub

Repository navigation

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 commented Oct 19, 2026 •
edited by bedevere-app Bot
Loading

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm!

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 merged commit e41b38b into python:main Oct 20, 2026
110 of 112 checks passed

Copy link
Copy Markdown

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

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 Bot removed the needs backport to 3.15 bugs and security fixes label Oct 20, 2026

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 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL